diff options
Diffstat (limited to 'clientloop.c')
-rw-r--r-- | clientloop.c | 8 |
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 | } |