diff options
author | hunt <hunt> | 2007-08-31 13:58:49 +0000 |
---|---|---|
committer | hunt <hunt> | 2007-08-31 13:58:49 +0000 |
commit | 8366a7a11b50f704e7bf503aa433e4ebe57958b2 (patch) | |
tree | 90560f6ec10284e8f254c9e79f669f7995647527 /runtime/staprun/mainloop.c | |
parent | 37db2d01c5236ae7cd1ce818fae61506ffce6353 (diff) | |
download | systemtap-steved-8366a7a11b50f704e7bf503aa433e4ebe57958b2.tar.gz systemtap-steved-8366a7a11b50f704e7bf503aa433e4ebe57958b2.tar.xz systemtap-steved-8366a7a11b50f704e7bf503aa433e4ebe57958b2.zip |
2007-08-31 Martin Hunt <hunt@redhat.com>
* mainloop.c (start_cmd): Set the priority to
forked processes back to normal.
Diffstat (limited to 'runtime/staprun/mainloop.c')
-rw-r--r-- | runtime/staprun/mainloop.c | 3 |
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); |