OpenBSD cvs log

created 2021-11-15T09:10:55Z
begin 2021-11-12T17:05:15Z
end 2021-11-12T17:57:13Z
path src/sys
commits 1

date 2021-11-12T17:57:13Z
author cheloha
files src/sys/kern/kern_sig.c log diff annotate
message sigsuspend(2): sleep on &nowake channel

sigsuspend(2) only returns upon delivery of a signal: we do not expect
a wakeup(9). Indicate this by sleeping on &nowake instead of
&p->p_p->ps_sigacts. We still need to loop here to handle spurious
wakeups, though.

Spurious wakeup case pointed out by kettenis@.

ok claudio@