diff options
author | hunt <hunt> | 2006-01-10 21:14:50 +0000 |
---|---|---|
committer | hunt <hunt> | 2006-01-10 21:14:50 +0000 |
commit | 7b462d7432f16dd96a8f788d8b3dab77f192b066 (patch) | |
tree | c06b953be1c7f01116c087bf43f8292f7cbe5080 /runtime/io.c | |
parent | db22e55f4280ceaf3181e5b17aacd0ba4075e85f (diff) | |
download | systemtap-steved-7b462d7432f16dd96a8f788d8b3dab77f192b066.tar.gz systemtap-steved-7b462d7432f16dd96a8f788d8b3dab77f192b066.tar.xz systemtap-steved-7b462d7432f16dd96a8f788d8b3dab77f192b066.zip |
2006-01-10 Martin Hunt <hunt@redhat.com>
* io.c (_stp_exit): set STAP_SESSION_STOPPING.
Diffstat (limited to 'runtime/io.c')
-rw-r--r-- | runtime/io.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/runtime/io.c b/runtime/io.c index b72590f3..5c7a5f10 100644 --- a/runtime/io.c +++ b/runtime/io.c @@ -116,6 +116,9 @@ void _stp_warn (const char *fmt, ...) */ void _stp_exit (void) { +#ifdef SYSTEMTAP + atomic_set (&session_state, STAP_SESSION_STOPPING); +#endif _stp_exit_flag = 1; } |