diff options
-rw-r--r-- | runtime/staprun/ChangeLog | 5 | ||||
-rw-r--r-- | runtime/staprun/mainloop.c | 3 |
2 files changed, 8 insertions, 0 deletions
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 <hunt@redhat.com> + + * mainloop.c (start_cmd): Set the priority to + forked processes back to normal. + 2007-08-21 Martin Hunt <hunt@redhat.com> * 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); |