Indeed, I'd come to the exact same conclusion, yet I've witnessed it both in the debugger and with trace messages...
Alexandre On Tue, Jul 26, 2011 at 4:46 AM, Paolo Bonzini <pbonz...@redhat.com> wrote: > On 07/26/2011 06:58 AM, Alexandre Raymond wrote: >> +#ifdef __APPLE__ >> + if (sig == 0) continue; >> +#endif > > From looking at the code this should not happen: > > http://fxr.watson.org/fxr/source/bsd/kern/kern_sig.c?v=xnu-792#L986 > > 1046 sigw = (ut->uu_sigwait & siglist); > ... > 1053 signum = ffs((unsigned int)sigw); > 1054 if (!signum) > 1055 panic("sigwait with no signal wakeup"); > 1056 ut->uu_siglist &= ~(sigmask(signum)); > 1057 if (uap->sig != USER_ADDR_NULL) > 1058 error = copyout(&signum, uap->sig, > sizeof(int)); > > ?? > > Paolo >