diff options
author | Nicholas Marriott <nicholas.marriott@gmail.com> | 2009-01-21 22:47:31 +0000 |
---|---|---|
committer | Nicholas Marriott <nicholas.marriott@gmail.com> | 2009-01-21 22:47:31 +0000 |
commit | 392e13534961b80984711f82230d9f34ca4a81bb (patch) | |
tree | a8f40eaba5b6b9e637fa6f469de8add9caea35f0 /client.c | |
parent | 9acc26711d180e45ff827d8b88b4adbf20fab949 (diff) | |
download | rtmux-392e13534961b80984711f82230d9f34ca4a81bb.tar.gz rtmux-392e13534961b80984711f82230d9f34ca4a81bb.tar.bz2 rtmux-392e13534961b80984711f82230d9f34ca4a81bb.zip |
Handle SIGTERM (and kill-server which uses it), a bit more neatly - tidy up
properly and print a nicer message. Same effect though :-)
Diffstat (limited to 'client.c')
-rw-r--r-- | client.c | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -1,4 +1,4 @@ -/* $Id: client.c,v 1.41 2009-01-19 17:16:09 nicm Exp $ */ +/* $Id: client.c,v 1.42 2009-01-21 22:47:31 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net> @@ -184,6 +184,11 @@ out: return (1); } + if (cctx->flags & CCTX_SHUTDOWN) { + printf("[server exited]\n"); + return (0); + } + if (cctx->flags & CCTX_EXIT) { printf("[exited]\n"); return (0); |