summaryrefslogtreecommitdiffstats
path: root/runtime
diff options
context:
space:
mode:
authorhunt <hunt>2007-08-31 13:58:49 +0000
committerhunt <hunt>2007-08-31 13:58:49 +0000
commit8366a7a11b50f704e7bf503aa433e4ebe57958b2 (patch)
tree90560f6ec10284e8f254c9e79f669f7995647527 /runtime
parent37db2d01c5236ae7cd1ce818fae61506ffce6353 (diff)
downloadsystemtap-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')
-rw-r--r--runtime/staprun/ChangeLog5
-rw-r--r--runtime/staprun/mainloop.c3
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);