summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorhunt <hunt>2005-11-30 08:39:03 +0000
committerhunt <hunt>2005-11-30 08:39:03 +0000
commitfe5679e9bab7ee97b4dc541aaf17d461c520dd02 (patch)
treec83e88c19411b5bcc1f3f097579c27927ad68db0
parent1296e5e2c706c3ff7858bd2903dcd76c3547d31b (diff)
downloadsystemtap-steved-fe5679e9bab7ee97b4dc541aaf17d461c520dd02.tar.gz
systemtap-steved-fe5679e9bab7ee97b4dc541aaf17d461c520dd02.tar.xz
systemtap-steved-fe5679e9bab7ee97b4dc541aaf17d461c520dd02.zip
2005-11-30 Martin Hunt <hunt@redhat.com>
* io.c (_stp_exit): To prevent any possible interactions with the probed function, just set a flag here.
-rw-r--r--runtime/ChangeLog5
-rw-r--r--runtime/io.c2
2 files changed, 6 insertions, 1 deletions
diff --git a/runtime/ChangeLog b/runtime/ChangeLog
index f05012ca..e647f0b8 100644
--- a/runtime/ChangeLog
+++ b/runtime/ChangeLog
@@ -1,3 +1,8 @@
+2005-11-30 Martin Hunt <hunt@redhat.com>
+
+ * io.c (_stp_exit): To prevent any possible interactions
+ with the probed function, just set a flag here.
+
2005-11-28 Graydon Hoare <graydon@redhat.com>
* stat-common.c (_stp_stat_print_histogram): Various formatting
diff --git a/runtime/io.c b/runtime/io.c
index dd4a9036..cf178951 100644
--- a/runtime/io.c
+++ b/runtime/io.c
@@ -116,7 +116,7 @@ void _stp_warn (const char *fmt, ...)
*/
void _stp_exit (void)
{
- schedule_work (&stp_exit);
+ _stp_exit_flag = 1;
}
/** Prints error message and exits.