projects
/
project
/
procd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
use calloc_a
[project/procd.git]
/
ubus.c
diff --git
a/ubus.c
b/ubus.c
index
0bd9e49
..
8c51b53
100644
(file)
--- a/
ubus.c
+++ b/
ubus.c
@@
-1,3
+1,4
@@
+#include <sys/resource.h>
#include <stdlib.h>
#include <unistd.h>
#include <signal.h>
@@
-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);
}