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/transport/control.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/transport/control.c')
-rw-r--r-- | runtime/transport/control.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/runtime/transport/control.c b/runtime/transport/control.c index edde244d..680d7306 100644 --- a/runtime/transport/control.c +++ b/runtime/transport/control.c @@ -13,6 +13,8 @@ static _stp_mempool_t *_stp_pool_q; static struct list_head _stp_ctl_ready_q; static DEFINE_SPINLOCK(_stp_ctl_ready_lock); +static void _stp_cleanup_and_exit(int send_exit); + static ssize_t _stp_ctl_write_cmd(struct file *file, const char __user *buf, size_t count, loff_t *ppos) { u32 type; @@ -46,7 +48,7 @@ static ssize_t _stp_ctl_write_cmd(struct file *file, const char __user *buf, siz } break; case STP_EXIT: - _stp_exit_flag = 1; + _stp_cleanup_and_exit(1); break; case STP_BULK: #ifdef STP_BULKMODE @@ -93,6 +95,9 @@ static void _stp_ctl_write_dbug(int type, void *data, int len) case STP_TRANSPORT: _dbug("sending STP_TRANSPORT\n"); break; + case STP_REQUEST_EXIT: + _dbug("sending STP_REQUEST_EXIT\n"); + break; default: _dbug("ERROR: unknown message type: %d\n", type); break; |