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 | |
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.
-rw-r--r-- | runtime/ChangeLog | 4 | ||||
-rw-r--r-- | runtime/io.c | 3 |
2 files changed, 7 insertions, 0 deletions
diff --git a/runtime/ChangeLog b/runtime/ChangeLog index 07973c93..e9989806 100644 --- a/runtime/ChangeLog +++ b/runtime/ChangeLog @@ -1,3 +1,7 @@ +2006-01-10 Martin Hunt <hunt@redhat.com> + + * io.c (_stp_exit): set STAP_SESSION_STOPPING. + 2006-01-03 Frank Ch. Eigler <fche@redhat.com> * io.c (_stp_softerror): New function. 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; } |