Incorrect cv_wait_sig() return values?

Andrew Gallatin gallatin at cs.duke.edu
Wed Aug 4 16:08:11 UTC 2010


Kostik Belousov wrote:

> BTW, -1 is ERESTART, so if you have SIGINT catched with SA_RESTART
> flag in the process that initiated kldload(2) syscall, then -1
> is the right return code for cv_wait_sig.

Ah, makes sense.   I hadn't considered that a BSD kernel
error could be negative.  I should have actually looked
at errno.h.   Sorry for the noise, and thanks for the
explanation.

Drew


More information about the freebsd-current mailing list