diff options
author | Damien Miller <djm@cvs.openbsd.org> | 2011-06-03 00:54:39 +0000 |
---|---|---|
committer | Damien Miller <djm@cvs.openbsd.org> | 2011-06-03 00:54:39 +0000 |
commit | 16f5f2e7b5a70d3ae10f81f25a471549deeba146 (patch) | |
tree | dd097da68ed2287c6bb8c159b622aaefbc29f889 | |
parent | 7b806a0d746a009f5786c7926ec54f47b326d8f8 (diff) |
bz#1883 - setproctitle() to identify mux master; patch from Bert.Wesarg
AT googlemail.com; ok dtucker@
-rw-r--r-- | usr.bin/ssh/ssh.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.bin/ssh/ssh.c b/usr.bin/ssh/ssh.c index c52a318b674..1d863b8c952 100644 --- a/usr.bin/ssh/ssh.c +++ b/usr.bin/ssh/ssh.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ssh.c,v 1.361 2011/05/24 07:15:47 djm Exp $ */ +/* $OpenBSD: ssh.c,v 1.362 2011/06/03 00:54:38 djm Exp $ */ /* * Author: Tatu Ylonen <ylo@cs.hut.fi> * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland @@ -943,6 +943,7 @@ control_persist_detach(void) if (devnull > STDERR_FILENO) close(devnull); } + setproctitle("%s [mux]", options.control_path); } /* Do fork() after authentication. Used by "ssh -f" */ |