From 8366a7a11b50f704e7bf503aa433e4ebe57958b2 Mon Sep 17 00:00:00 2001 From: hunt Date: Fri, 31 Aug 2007 13:58:49 +0000 Subject: 2007-08-31 Martin Hunt * mainloop.c (start_cmd): Set the priority to forked processes back to normal. --- runtime/staprun/mainloop.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'runtime/staprun/mainloop.c') 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); -- cgit