Re: Incorrect cv_wait_sig() return values?

From: Andrew Gallatin <gallatin_at_cs.duke.edu>
Date: Wed, 04 Aug 2010 12:08:04 -0400
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
Received on Wed Aug 04 2010 - 14:08:11 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:40:05 UTC