From 4d0321f1b086be17ada643ff469e1afa536b4ce7 Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Sun, 16 Dec 2012 20:46:00 +0100 Subject: [PATCH] raise ubusd priority to speed up message processing under load Signed-off-by: Felix Fietkau --- ubus.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ubus.c b/ubus.c index 0bd9e49..8c51b53 100644 --- a/ubus.c +++ b/ubus.c @@ -1,3 +1,4 @@ +#include #include #include #include @@ -31,6 +32,7 @@ static void procd_restart_ubus(void) ubus_proc.pid = fork(); if (!ubus_proc.pid) { + setpriority(PRIO_PROCESS, 0, -20); execvp(argv[0], argv); exit(-1); } -- 2.25.1