diff options
author | Frank Ch. Eigler <fche@elastic.org> | 2008-11-28 10:56:17 -0500 |
---|---|---|
committer | Frank Ch. Eigler <fche@elastic.org> | 2008-11-28 10:56:17 -0500 |
commit | 70514d65f670ac2160af4c282ebad1e7eb852341 (patch) | |
tree | 5556c9be3b6729b72dd86af476aa328167db0f9a /runtime | |
parent | 84680f7eef6d7f0a30213ceb6cc254a230eb5eab (diff) | |
download | systemtap-steved-70514d65f670ac2160af4c282ebad1e7eb852341.tar.gz systemtap-steved-70514d65f670ac2160af4c282ebad1e7eb852341.tar.xz systemtap-steved-70514d65f670ac2160af4c282ebad1e7eb852341.zip |
PR4783: remove traces of stap{run,io} self-renicing
Diffstat (limited to 'runtime')
-rw-r--r-- | runtime/staprun/ChangeLog | 7 | ||||
-rw-r--r-- | runtime/staprun/mainloop.c | 1 | ||||
-rw-r--r-- | runtime/staprun/staprun.c | 5 |
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)); |