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/ChangeLog | 5 +++++ runtime/staprun/mainloop.c | 3 +++ 2 files changed, 8 insertions(+) diff --git a/runtime/staprun/ChangeLog b/runtime/staprun/ChangeLog index a7b0e87b..533e2658 100644 --- a/runtime/staprun/ChangeLog +++ b/runtime/staprun/ChangeLog @@ -1,3 +1,8 @@ +2007-08-31 Martin Hunt + + * mainloop.c (start_cmd): Set the priority to + forked processes back to normal. + 2007-08-21 Martin Hunt * mainloop.c (start_cmd): Send SIGINT to target_cmd, 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