diff options
author | hunt <hunt> | 2007-08-15 14:44:21 +0000 |
---|---|---|
committer | hunt <hunt> | 2007-08-15 14:44:21 +0000 |
commit | d272fb15855a3630d99bbd7a8a13adaba1a951fe (patch) | |
tree | 0bdf334d9edc2e4323ee5f5bcd3f2cedc569a681 /runtime/staprun/staprun.c | |
parent | 6cad281fe986cdd3f89cba7c1959de10ca6f389d (diff) | |
download | systemtap-steved-d272fb15855a3630d99bbd7a8a13adaba1a951fe.tar.gz systemtap-steved-d272fb15855a3630d99bbd7a8a13adaba1a951fe.tar.xz systemtap-steved-d272fb15855a3630d99bbd7a8a13adaba1a951fe.zip |
2007-08-15 Martin Hunt <hunt@redhat.com>
PR4736
* staprun.c (cleanup): Set priority back to normal
before removing module.
Diffstat (limited to 'runtime/staprun/staprun.c')
-rw-r--r-- | runtime/staprun/staprun.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/runtime/staprun/staprun.c b/runtime/staprun/staprun.c index d9738cd7..fe55e36f 100644 --- a/runtime/staprun/staprun.c +++ b/runtime/staprun/staprun.c @@ -121,6 +121,9 @@ static void cleanup(int rc) dbug(2, "rc=%d, inserted_module=%d\n", rc, inserted_module); + if (setpriority (PRIO_PROCESS, 0, 0) < 0) + _perr("setpriority"); + /* rc == 2 means disconnected */ if (rc == 2) return; |