From owner-freebsd-current@FreeBSD.ORG Wed Aug 4 16:08:11 2010 Return-Path: Delivered-To: current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 2A87C1065672 for ; Wed, 4 Aug 2010 16:08:11 +0000 (UTC) (envelope-from gallatin@cs.duke.edu) Received: from duke.cs.duke.edu (duke.cs.duke.edu [152.3.140.1]) by mx1.freebsd.org (Postfix) with ESMTP id DDE7C8FC14 for ; Wed, 4 Aug 2010 16:08:10 +0000 (UTC) Received: from [172.31.193.10] (rrcs-98-101-145-84.midsouth.biz.rr.com [98.101.145.84]) (authenticated bits=0) by duke.cs.duke.edu (8.14.2/8.14.2) with ESMTP id o74G8Aeh007075 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Wed, 4 Aug 2010 12:08:10 -0400 (EDT) X-DKIM: Sendmail DKIM Filter v2.8.3 duke.cs.duke.edu o74G8Aeh007075 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=cs.duke.edu; s=mail; t=1280938090; bh=mj89Wd0+uuR3NzPrIeqjhvcQtgq/UNikGUSGCCXzUio=; h=Message-ID:Date:From:MIME-Version:To:CC:Subject:References: In-Reply-To:Content-Type:Content-Transfer-Encoding; b=lSYjVHpFNxkiuRqtjpuHINrMjjQg4rTvhtKn+0smn8WZ2Wztwo+jBqwhVSFKjJvhh Z/JMRhlOL86Eq+MFxK/mpetCyxCApgpO/sIuwJkfzKq4nx5cuzvvU3pnBDlaqxEtSL 9TMi84Ufre4v3cDkcHp10AeBmVeqv8M3sio+QpCU= Message-ID: <4C599064.5010604@cs.duke.edu> Date: Wed, 04 Aug 2010 12:08:04 -0400 From: Andrew Gallatin User-Agent: Thunderbird 2.0.0.24 (X11/20100317) MIME-Version: 1.0 To: Kostik Belousov References: <4C597AE8.5090703@cs.duke.edu> <20100804154604.GY22295@deviant.kiev.zoral.com.ua> <20100804160404.GZ22295@deviant.kiev.zoral.com.ua> In-Reply-To: <20100804160404.GZ22295@deviant.kiev.zoral.com.ua> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: current@freebsd.org Subject: Re: Incorrect cv_wait_sig() return values? X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 04 Aug 2010 16:08:11 -0000 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