diff options
author | William Cohen <wcohen@redhat.com> | 2009-03-13 23:13:06 -0400 |
---|---|---|
committer | William Cohen <wcohen@redhat.com> | 2009-03-13 23:13:06 -0400 |
commit | 468cdbf127c55b3202d9d71dc2ebda481cec563b (patch) | |
tree | 9a8727bae29784c2c964423d582679a65e582349 /runtime/staprun/mainloop.c | |
parent | 354c462465ffc80fc9a55beb9d6066cfa6048bc1 (diff) | |
parent | 436b47f678c2fc5397ed66a1eddf6b419cc6585b (diff) | |
download | systemtap-steved-468cdbf127c55b3202d9d71dc2ebda481cec563b.tar.gz systemtap-steved-468cdbf127c55b3202d9d71dc2ebda481cec563b.tar.xz systemtap-steved-468cdbf127c55b3202d9d71dc2ebda481cec563b.zip |
Merge branch 'master' of ssh://sources.redhat.com/git/systemtap
Diffstat (limited to 'runtime/staprun/mainloop.c')
-rw-r--r-- | runtime/staprun/mainloop.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/runtime/staprun/mainloop.c b/runtime/staprun/mainloop.c index 29eb4f1f..db6ef6b7 100644 --- a/runtime/staprun/mainloop.c +++ b/runtime/staprun/mainloop.c @@ -477,6 +477,14 @@ int stp_main_loop(void) cleanup_and_exit(0); break; } + case STP_REQUEST_EXIT: + { + /* module asks us to start exiting, so send STP_EXIT */ + dbug(2, "got STP_REQUEST_EXIT\n"); + int32_t rc, btype = STP_EXIT; + rc = write(control_channel, &btype, sizeof(btype)); + break; + } case STP_START: { struct _stp_msg_start *t = (struct _stp_msg_start *)data; |