Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 04 Aug 2010 12:08:04 -0400
From:      Andrew Gallatin <gallatin@cs.duke.edu>
To:        Kostik Belousov <kostikbel@gmail.com>
Cc:        current@freebsd.org
Subject:   Re: Incorrect cv_wait_sig() return values?
Message-ID:  <4C599064.5010604@cs.duke.edu>
In-Reply-To: <20100804160404.GZ22295@deviant.kiev.zoral.com.ua>
References:  <4C597AE8.5090703@cs.duke.edu> <20100804154604.GY22295@deviant.kiev.zoral.com.ua> <20100804160404.GZ22295@deviant.kiev.zoral.com.ua>

next in thread | previous in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4C599064.5010604>