[Bug 1570] New: Incorrect return code if mux master has completed

bugzilla-daemon at bugzilla.mindrot.org bugzilla-daemon at bugzilla.mindrot.org
Wed Mar 11 00:12:18 EST 2009


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

           Summary: Incorrect return code if mux master has completed
           Product: Portable OpenSSH
           Version: 5.2p1
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: minor
          Priority: P2
         Component: ssh
        AssignedTo: unassigned-bugs at mindrot.org
        ReportedBy: peter.oliver at eon-is.co.uk


When a control master is running because it still has clients, but the
command that that master originally ran has already exited, a client
will incorrectly exit 255.  It will otherwise work correctly.

> cat ~/.ssh/config
ControlMaster   auto
ControlPath     ~/.ssh/mux/%r@%h:%p
> ssh -f remote-host sleep 60
Password: 
> ssh -n remote-host sleep 300 &
[3] 9166
> ssh -vv remote-host date
OpenSSH_5.1p1, OpenSSL 0.9.8g 19 Oct 2007
debug1: Reading configuration data /home/xxx/.ssh/config
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: auto-mux: Trying existing master
Tue Mar 10 12:31:01 GMT 2009
debug2: Received EOF from master
debug2: Received exit status from master 0
> echo $?
0
> sleep 60
> ssh -vv remote-host date
OpenSSH_5.1p1, OpenSSL 0.9.8g 19 Oct 2007
debug1: Reading configuration data /home/xxx/.ssh/config
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: auto-mux: Trying existing master
Tue Mar 10 12:32:14 GMT 2009
debug2: Received EOF from master
debug2: Control master terminated unexpectedly
> echo $?
255

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


More information about the openssh-bugs mailing list