[Bug 1330] RFE: 'ControlPersist' support -- automatically fork and leave ControlMaster behind as a dæmon

bugzilla-daemon at bugzilla.mindrot.org bugzilla-daemon at bugzilla.mindrot.org
Fri Jul 6 14:04:28 EST 2007


http://bugzilla.mindrot.org/show_bug.cgi?id=1330


Damien Miller <djm at mindrot.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |djm at mindrot.org




--- Comment #2 from Damien Miller <djm at mindrot.org>  2007-07-06 14:04:24 ---
Perhaps it would be better to fork prior to connection for
ControlPersist=yes, rather than at the end of the session. E.g.
something like the following:

if (master_socket_exists)
   control_client()
if (control_persist):
   fork()
   if (parent):
       wait_for_master_socket()
       control_client()
   else:
       daemon() /* will take care of detaching from tty, etc. */
       connect_and_establish_master()

Another handy thing might be to make ControlPersist accept a time
value, using misc.c:convtime(), for how long to stick around after the
last active channel has closed.


-- 
Configure bugmail: http://bugzilla.mindrot.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching the assignee of the bug.
You are watching someone on the CC list of the bug.


More information about the openssh-bugs mailing list