| Summary: | ssh-keygen hangs | ||||||
|---|---|---|---|---|---|---|---|
| Product: | Portable OpenSSH | Reporter: | Mike Grierson <mcg> | ||||
| Component: | ssh-keygen | Assignee: | OpenSSH Bugzilla mailing list <openssh-bugs> | ||||
| Status: | CLOSED FIXED | ||||||
| Severity: | normal | CC: | mcg | ||||
| Priority: | P2 | ||||||
| Version: | -current | ||||||
| Hardware: | All | ||||||
| OS: | AIX | ||||||
| URL: | http://www.mgi-networks.com/ | ||||||
| Attachments: |
|
||||||
|
Description
Mike Grierson
2002-09-23 21:26:12 AEST
Created attachment 156 [details]
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.
Applied - thanks. Mass change of RESOLVED bugs to CLOSED |