- 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
This commit is contained in:
parent
94c9cd34d1
commit
98e27dcf58
|
@ -11,6 +11,10 @@
|
||||||
[umac.h]
|
[umac.h]
|
||||||
oops, forgot to commit corresponding header change;
|
oops, forgot to commit corresponding header change;
|
||||||
spotted by jsg and jasper
|
spotted by jsg and jasper
|
||||||
|
- 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
|
||||||
|
|
||||||
20130720
|
20130720
|
||||||
- (djm) OpenBSD CVS Sync
|
- (djm) OpenBSD CVS Sync
|
||||||
|
|
3
ssh.c
3
ssh.c
|
@ -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>
|
* Author: Tatu Ylonen <ylo@cs.hut.fi>
|
||||||
* Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland
|
* Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland
|
||||||
|
@ -1022,6 +1022,7 @@ control_persist_detach(void)
|
||||||
if (devnull > STDERR_FILENO)
|
if (devnull > STDERR_FILENO)
|
||||||
close(devnull);
|
close(devnull);
|
||||||
}
|
}
|
||||||
|
daemon(1, 1);
|
||||||
setproctitle("%s [mux]", options.control_path);
|
setproctitle("%s [mux]", options.control_path);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue