summaryrefslogtreecommitdiff
path: root/ssh.c
diff options
context:
space:
mode:
authorDamien Miller <djm@mindrot.org>2013-07-25 11:55:52 +1000
committerDamien Miller <djm@mindrot.org>2013-07-25 11:55:52 +1000
commit98e27dcf581647b5bbe9780e8f59685d942d8ea3 (patch)
tree4cfd542e8a5e2db36867c3c9962498541f4577ef /ssh.c
parent94c9cd34d1590ea1d4bf76919a15b5688fa90ed1 (diff)
- djm@cvs.openbsd.org 2013/07/25 00:29:10
[ssh.c] daemonise backgrounded (ControlPersist'ed) multiplexing master to ensure it is fully detached from its controlling terminal. based on debugging
Diffstat (limited to 'ssh.c')
-rw-r--r--ssh.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/ssh.c b/ssh.c
index 30e65338f..87233bc91 100644
--- a/ssh.c
+++ b/ssh.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: ssh.c,v 1.380 2013/07/20 01:44:37 djm Exp $ */ 1/* $OpenBSD: ssh.c,v 1.381 2013/07/25 00:29:10 djm 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
@@ -1022,6 +1022,7 @@ control_persist_detach(void)
1022 if (devnull > STDERR_FILENO) 1022 if (devnull > STDERR_FILENO)
1023 close(devnull); 1023 close(devnull);
1024 } 1024 }
1025 daemon(1, 1);
1025 setproctitle("%s [mux]", options.control_path); 1026 setproctitle("%s [mux]", options.control_path);
1026} 1027}
1027 1028