diff options
author | Damien Miller <djm@mindrot.org> | 2013-07-25 03:55:52 +0200 |
---|---|---|
committer | Damien Miller <djm@mindrot.org> | 2013-07-25 03:55:52 +0200 |
commit | 98e27dcf581647b5bbe9780e8f59685d942d8ea3 (patch) | |
tree | 4cfd542e8a5e2db36867c3c9962498541f4577ef /ssh.c | |
parent | - djm@cvs.openbsd.org 2013/07/22 12:20:02 (diff) | |
download | openssh-98e27dcf581647b5bbe9780e8f59685d942d8ea3.tar.xz openssh-98e27dcf581647b5bbe9780e8f59685d942d8ea3.zip |
- 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.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -1,4 +1,4 @@ -/* $OpenBSD: ssh.c,v 1.380 2013/07/20 01:44:37 djm Exp $ */ +/* $OpenBSD: ssh.c,v 1.381 2013/07/25 00:29:10 djm Exp $ */ /* * Author: Tatu Ylonen <ylo@cs.hut.fi> * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland @@ -1022,6 +1022,7 @@ control_persist_detach(void) if (devnull > STDERR_FILENO) close(devnull); } + daemon(1, 1); setproctitle("%s [mux]", options.control_path); } |