bugzilla-daemon at mindrot.org
2006-Nov-13 10:32 UTC
[Bug 1261] Timed out command through ControlMaster yields 0 return value.
http://bugzilla.mindrot.org/show_bug.cgi?id=1261 Summary: Timed out command through ControlMaster yields 0 return value. Product: Portable OpenSSH Version: 4.4p1 Platform: ix86 OS/Version: Linux Status: NEW Severity: normal Priority: P2 Component: ssh AssignedTo: bitbucket at mindrot.org ReportedBy: frekko at gmail.com Start a ControlMaster to some server like this: ssh -xo ControlMaster=yes -o ServerAliveInterval=1 -o ServerAliveCountMax=1 10.0.0.21 "while [ 1 ]; do sleep 10; done" Then start some other command through the ControlMaster like this: ssh -xo ControlMaster=no -o ServerAliveInterval=1 -o ServerAliveCountMax=1 10.0.0.21 "while [ 1 ]; do sleep 10; done" Now pull the plug on the server (10.0.0.21 in this case). Both clients quit after one second. However, the controlmaster client will exit with exit status 255 while the other client exits with exitv status 0. If I understand the man page correctly they should both have exited with exit status 255. ------- You are receiving this mail because: ------- You are the assignee for the bug, or are watching the assignee.