[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
Tue Jun 15 20:45:26 EST 2010


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

--- Comment #15 from Martin Ling <martin-mindrot-bugzilla at earth.li>  ---
(In reply to comment #14)
> 
> It works in 5.5p1 because in 5.5p1 the 'master' is actually
> backgrounded and even the 'first' connection is just behaving the same
> as any later client would.

Are you sure? I've just tried again using your patch on the original
5.5p1 source and I'm having the same problem.

I have these settings in ~/.ssh/config:

ControlMaster auto
ControlPath ~/.ssh/control/%h-%p-%r
ControlPersist 0

The steps I'm taking are:

- Check no ssh processes are running.
- Start one session to a server, which opens the connection.
- Start a second session to the same server, reusing the connection.
- Close the first session, which returns me to the shell.
- Close the second session, also returning me to the shell.

After this I see:

- One ssh process is still running in the background.
- Starting a third session again reuses the connection.

What I expect is:

- No ssh processes running.
- Starting a third session initiates a new connection.

-- 
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