From: Felix Fietkau Date: Sun, 16 Dec 2012 19:46:00 +0000 (+0100) Subject: raise ubusd priority to speed up message processing under load X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=4d0321f1b086be17ada643ff469e1afa536b4ce7;p=oweals%2Fprocd.git raise ubusd priority to speed up message processing under load Signed-off-by: Felix Fietkau --- 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); }