diff options
author | Philip Guenthe <guenther@cvs.openbsd.org> | 2008-10-03 04:22:38 +0000 |
---|---|---|
committer | Philip Guenthe <guenther@cvs.openbsd.org> | 2008-10-03 04:22:38 +0000 |
commit | de488b267d2252ee7bce9afcebd3687ddb07a80c (patch) | |
tree | 722e4ec54122d91fef8a58e21dfe2a8c6c719fc8 /usr.bin/ssh/ssh-keygen | |
parent | bc88e179cfce53de0abe82ca519bfa191ea45a16 (diff) |
Make sigwait() work correctly. In particular, it'll work when the
signal is already pending in the calling thread or the main thread
and there's no longer a race condition where the signal could be
diverted but sigwait() would still block. There were some off-by-one
errors too.
(The checking of the main thread's pending list is just until a
pending list for the process can be added to struct process. For
now, such signals end up as pending on the main thread.)
oks tedu@ and art@
Diffstat (limited to 'usr.bin/ssh/ssh-keygen')
0 files changed, 0 insertions, 0 deletions