summaryrefslogtreecommitdiffstats
path: root/runtime/staprun
diff options
context:
space:
mode:
Diffstat (limited to 'runtime/staprun')
-rw-r--r--runtime/staprun/ChangeLog1
-rw-r--r--runtime/staprun/mainloop.c1
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);