[Bug 369] Inconsistant exiit status from scp
bugzilla-daemon at mindrot.org
bugzilla-daemon at mindrot.org
Thu Sep 12 00:43:29 EST 2002
http://bugzilla.mindrot.org/show_bug.cgi?id=369
------- Additional Comments From binder at arago.de 2002-09-12 00:43 -------
Created an attachment (id=144)
--> (http://bugzilla.mindrot.org/attachment.cgi?id=144&action=view)
Check ssh's exit status in scp
The attached rough patch should do the trick. Note that you have to close()
the file handles used to communicate with the ssh process, as otherwise the
remote scp (when copying to remote) will continue waiting for data, causing
waitpid() to wait forever.
Also note that this patch may cause hangs of the local scp client when the
remote sshd should have been compiled with USE_PIPES defined, but hasn't.
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
More information about the openssh-unix-dev
mailing list