summaryrefslogtreecommitdiff
path: root/usr.bin
diff options
context:
space:
mode:
authorDamien Miller <djm@cvs.openbsd.org>2011-06-17 21:57:26 +0000
committerDamien Miller <djm@cvs.openbsd.org>2011-06-17 21:57:26 +0000
commit0680bf8ce6242df48b2ef728c3a736dd91cf5a68 (patch)
tree002ca40ae65ead9e23170b2cf76197686f26a5fd /usr.bin
parent20bcc0c02bcbce428290f94f4b16486cdfe0ea1e (diff)
setproctitle for a mux master that has been gracefully stopped;
bz#1911 from Bert.Wesarg AT googlemail.com
Diffstat (limited to 'usr.bin')
-rw-r--r--usr.bin/ssh/clientloop.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/usr.bin/ssh/clientloop.c b/usr.bin/ssh/clientloop.c
index 5389be666a4..747bff458c4 100644
--- a/usr.bin/ssh/clientloop.c
+++ b/usr.bin/ssh/clientloop.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: clientloop.c,v 1.234 2011/05/08 12:52:01 djm Exp $ */
+/* $OpenBSD: clientloop.c,v 1.235 2011/06/17 21:57:25 djm Exp $ */
/*
* Author: Tatu Ylonen <ylo@cs.hut.fi>
* Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland
@@ -2139,8 +2139,10 @@ client_stop_mux(void)
* If we are in persist mode, signal that we should close when all
* active channels are closed.
*/
- if (options.control_persist)
+ if (options.control_persist) {
session_closed = 1;
+ setproctitle("[stopped mux]");
+ }
}
/* client specific fatal cleanup */