[Bug 400] ssh-keygen hangs

bugzilla-daemon at mindrot.org bugzilla-daemon at mindrot.org
Sun Oct 20 20:42:16 EST 2002


http://bugzilla.mindrot.org/show_bug.cgi?id=400





------- Additional Comments From dtucker at zip.com.au  2002-10-20 20:42 -------
Created an attachment (id=156)
 --> (http://bugzilla.mindrot.org/attachment.cgi?id=156&action=view)
Send SIGINT to ssh-rand-helper child in case of timeout.

You can reproduce this easily on Linux and Solaris (an probably others too) by
adding this to the top of ssh_prng_cmds:

"sleep 1000" /bin/sleep 0.02

then running ssh-rand-helper -vvv.

It appears to happen because closing the descriptor either command doesn't
produce a SIGPIPE or the command ignores it.

The patch sends a SIGINT to the child if the command times out. This should be
safe even if the command has already exitted because we haven't yet wait()ed
for it.



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