diff options
author | Frank Ch. Eigler <fche@elastic.org> | 2007-10-12 18:13:07 -0400 |
---|---|---|
committer | Frank Ch. Eigler <fche@elastic.org> | 2007-10-12 18:13:07 -0400 |
commit | 8b64d9c2be16169b73a3d3230e736b7e50161478 (patch) | |
tree | 0d1e4e1946e4b57335e076a559c401362cf8093e /runtime/staprun/staprun.c | |
parent | fc6d4679f2eb93d1d114ceb9d47fc9f3cc12aca7 (diff) | |
parent | 1969b5bca1098bb03f8bcffc5cc940102a67744c (diff) | |
download | systemtap-steved-8b64d9c2be16169b73a3d3230e736b7e50161478.tar.gz systemtap-steved-8b64d9c2be16169b73a3d3230e736b7e50161478.tar.xz systemtap-steved-8b64d9c2be16169b73a3d3230e736b7e50161478.zip |
Merge branch 'master' of git://sources.redhat.com/git/systemtap
Diffstat (limited to 'runtime/staprun/staprun.c')
-rw-r--r-- | runtime/staprun/staprun.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/runtime/staprun/staprun.c b/runtime/staprun/staprun.c index 44ac0313..f4e67fdb 100644 --- a/runtime/staprun/staprun.c +++ b/runtime/staprun/staprun.c @@ -181,6 +181,8 @@ static void cleanup(int rc) if (setpriority (PRIO_PROCESS, 0, 0) < 0) _perr("setpriority"); + stop_symbol_thread(); + /* rc == 2 means disconnected */ if (rc == 2) return; @@ -276,8 +278,7 @@ int main(int argc, char **argv) exit(1); setup_staprun_signals(); - if (!attach_mod) - handle_symbols(); + start_symbol_thread(); rc = run_stapio(argv); cleanup(rc); |