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

bugzilla-daemon at bugzilla.mindrot.org bugzilla-daemon at bugzilla.mindrot.org
Wed Jun 16 18:49:05 EST 2010


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

--- Comment #25 from Martin Ling <martin-mindrot-bugzilla at earth.li>  ---
Alan/Damien: Yes, this is how the current option supports those cases.
My remaining concern is with the strange difference that exists between
"no" and "0". My suggestion of a "ControlTransfer" option was intended
to make this distinction clearer.

If everyone else is happy with the existing option then I'm fine with
that.

If not, here's a two-option alternative for discussion:

ControlTransfer (default no):

  - no: The ssh invocation which opens the connection will not
terminate until all sessions have closed.

  - yes: The ssh invocation which opens the connection will terminate,
but control of the connection will be transferred to another process if
other sessions are using it.

ControlPersist (default 0):

  - <time>: The connection will be closed after the specified time when
not in use.

  - "forever": The connection will not be closed.

There might be cases in which
ControlTransfer=no/ControlPersist=<nonzero> could be useful, e.g. in a
script designed to just keep a connection open for reuse.

-- 
Configure bugmail: https://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