diff options
author | hunt <hunt> | 2007-08-31 14:28:31 +0000 |
---|---|---|
committer | hunt <hunt> | 2007-08-31 14:28:31 +0000 |
commit | fd9f3974b4b1a40ea958925e597686134c5f5099 (patch) | |
tree | 9a872619b6aff6d8100bbc97eea014321e36db00 /runtime/staprun | |
parent | 8366a7a11b50f704e7bf503aa433e4ebe57958b2 (diff) | |
download | systemtap-steved-fd9f3974b4b1a40ea958925e597686134c5f5099.tar.gz systemtap-steved-fd9f3974b4b1a40ea958925e597686134c5f5099.tar.xz systemtap-steved-fd9f3974b4b1a40ea958925e597686134c5f5099.zip |
2007-08-31 Martin Hunt <hunt@redhat.com>
* mainloop.c (start_cmd): Set the priority to
forked processes back to normal.
(system_cmd): Ditto.
Diffstat (limited to 'runtime/staprun')
-rw-r--r-- | runtime/staprun/ChangeLog | 1 | ||||
-rw-r--r-- | runtime/staprun/mainloop.c | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/runtime/staprun/ChangeLog b/runtime/staprun/ChangeLog index 533e2658..6aabd983 100644 --- a/runtime/staprun/ChangeLog +++ b/runtime/staprun/ChangeLog @@ -2,6 +2,7 @@ * mainloop.c (start_cmd): Set the priority to forked processes back to normal. + (system_cmd): Ditto. 2007-08-21 Martin Hunt <hunt@redhat.com> diff --git a/runtime/staprun/mainloop.c b/runtime/staprun/mainloop.c index 47768e8b..f0952f86 100644 --- a/runtime/staprun/mainloop.c +++ b/runtime/staprun/mainloop.c @@ -111,6 +111,7 @@ void system_cmd(char *cmd) if ((pid = fork()) < 0) { _perr("fork"); } else if (pid == 0) { + setpriority (PRIO_PROCESS, 0, 0); if (execl("/bin/sh", "sh", "-c", cmd, NULL) < 0) perr("%s", cmd); _exit(1); |