diff options
author | Dave Brolley <brolley@redhat.com> | 2009-03-16 12:15:51 -0400 |
---|---|---|
committer | Dave Brolley <brolley@redhat.com> | 2009-03-16 12:15:51 -0400 |
commit | 9b6d8bd0d7a6f80a613b7c609ff1d71ddfed009b (patch) | |
tree | 2a84a12198ad719d566dd4bca8494a9824c2a097 /runtime/transport/control.c | |
parent | 24068a1f2e17857f4ce096a17244d09575a199c1 (diff) | |
parent | 5d369d06fa39e4769fb3364ba29f588f3d995c24 (diff) | |
download | systemtap-steved-9b6d8bd0d7a6f80a613b7c609ff1d71ddfed009b.tar.gz systemtap-steved-9b6d8bd0d7a6f80a613b7c609ff1d71ddfed009b.tar.xz systemtap-steved-9b6d8bd0d7a6f80a613b7c609ff1d71ddfed009b.zip |
Merge branch 'master' of git://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; |