summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--runtime/staprun/ChangeLog7
-rw-r--r--runtime/staprun/mainloop.c1
-rw-r--r--runtime/staprun/staprun.c5
3 files changed, 7 insertions, 6 deletions
diff --git a/runtime/staprun/ChangeLog b/runtime/staprun/ChangeLog
index 59a3d974..35dd7719 100644
--- a/runtime/staprun/ChangeLog
+++ b/runtime/staprun/ChangeLog
@@ -1,3 +1,10 @@
+2008-11-28 Frank Ch. Eigler <fche@elastic.org>
+
+ PR4783
+ * staprun.c (remove_module): Don't reset with setpriority(0),
+ as we never set it to high-priority any more anyway.
+ * mainloop.c (system_cmd): Ditto.
+
2008-11-12 Frank Ch. Eigler <fche@elastic.org>
PR6964 redux.
diff --git a/runtime/staprun/mainloop.c b/runtime/staprun/mainloop.c
index bc5244f5..2b044bdf 100644
--- a/runtime/staprun/mainloop.c
+++ b/runtime/staprun/mainloop.c
@@ -239,7 +239,6 @@ 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);
diff --git a/runtime/staprun/staprun.c b/runtime/staprun/staprun.c
index d23945e6..b6d77979 100644
--- a/runtime/staprun/staprun.c
+++ b/runtime/staprun/staprun.c
@@ -187,11 +187,6 @@ static int remove_module(const char *name, int verb)
close_ctl_channel();
dbug(2, "removing module %s\n", name);
-
- /* Don't remove module when priority is elevated. */
- if (setpriority(PRIO_PROCESS, 0, 0) < 0)
- _perr("setpriority");
-
ret = delete_module (name, 0);
if (ret != 0) {
err("Error removing module '%s': %s.\n", name, strerror(errno));