summaryrefslogtreecommitdiff
path: root/clientloop.c
diff options
context:
space:
mode:
authorDarren Tucker <dtucker@zip.com.au>2012-09-07 16:38:53 +1000
committerDarren Tucker <dtucker@zip.com.au>2012-09-07 16:38:53 +1000
commit48bf4b0ca366d68ef9c5ce95cb0c49fb3e149a40 (patch)
tree398e1cdc98f69f8ee6916893edfd075635e746ed /clientloop.c
parentca0d0fd806ebce746ac0bee52995fc32b1116656 (diff)
- dtucker@cvs.openbsd.org 2012/09/07 06:34:21
[clientloop.c] when muxmaster is run with -N, make it shut down gracefully when a client sends it "-O stop" rather than hanging around (bz#1985). ok djm@
Diffstat (limited to 'clientloop.c')
-rw-r--r--clientloop.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/clientloop.c b/clientloop.c
index 3de542814..564508146 100644
--- a/clientloop.c
+++ b/clientloop.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: clientloop.c,v 1.246 2012/09/07 01:10:21 dtucker Exp $ */ 1/* $OpenBSD: clientloop.c,v 1.247 2012/09/07 06:34:21 dtucker Exp $ */
2/* 2/*
3 * Author: Tatu Ylonen <ylo@cs.hut.fi> 3 * Author: Tatu Ylonen <ylo@cs.hut.fi>
4 * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland 4 * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland
@@ -2244,10 +2244,10 @@ client_stop_mux(void)
2244 if (options.control_path != NULL && muxserver_sock != -1) 2244 if (options.control_path != NULL && muxserver_sock != -1)
2245 unlink(options.control_path); 2245 unlink(options.control_path);
2246 /* 2246 /*
2247 * If we are in persist mode, signal that we should close when all 2247 * If we are in persist mode, or don't have a shell, signal that we
2248 * active channels are closed. 2248 * should close when all active channels are closed.
2249 */ 2249 */
2250 if (options.control_persist) { 2250 if (options.control_persist || no_shell_flag) {
2251 session_closed = 1; 2251 session_closed = 1;
2252 setproctitle("[stopped mux]"); 2252 setproctitle("[stopped mux]");
2253 } 2253 }