summaryrefslogtreecommitdiffstats
path: root/runtime/staprun/mainloop.c
diff options
context:
space:
mode:
Diffstat (limited to 'runtime/staprun/mainloop.c')
-rw-r--r--runtime/staprun/mainloop.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/runtime/staprun/mainloop.c b/runtime/staprun/mainloop.c
index 5072182e..47768e8b 100644
--- a/runtime/staprun/mainloop.c
+++ b/runtime/staprun/mainloop.c
@@ -85,6 +85,9 @@ void start_cmd(void)
a.sa_handler = SIG_DFL;
sigaction(SIGINT, &a, NULL);
+ /* commands we fork need to run at normal priority */
+ setpriority (PRIO_PROCESS, 0, 0);
+
/* wait here until signaled */
sigwait(&usrset, &signum);