From owner-freebsd-current@FreeBSD.ORG Mon Jun 28 08:25:37 2010 Return-Path: Delivered-To: freebsd-current@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C5847106567F; Mon, 28 Jun 2010 08:25:37 +0000 (UTC) (envelope-from des@des.no) Received: from smtp.des.no (smtp.des.no [194.63.250.102]) by mx1.freebsd.org (Postfix) with ESMTP id 868688FC17; Mon, 28 Jun 2010 08:25:37 +0000 (UTC) Received: from ds4.des.no (des.no [84.49.246.2]) by smtp.des.no (Postfix) with ESMTP id 8677E1FFC34; Mon, 28 Jun 2010 08:25:36 +0000 (UTC) Received: by ds4.des.no (Postfix, from userid 1001) id 5E1BF84525; Mon, 28 Jun 2010 10:23:25 +0200 (CEST) From: =?utf-8?Q?Dag-Erling_Sm=C3=B8rgrav?= To: "M. Warner Losh" References: <20100627.160845.256787458594170652.imp@bsdimp.com> <20100627.201716.1108826596298620201.imp@bsdimp.com> Date: Mon, 28 Jun 2010 10:23:25 +0200 In-Reply-To: <20100627.201716.1108826596298620201.imp@bsdimp.com> (M. Warner Losh's message of "Sun, 27 Jun 2010 20:17:16 -0600 (MDT)") Message-ID: <86iq537egy.fsf@ds4.des.no> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Cc: yanefbsd@gmail.com, freebsd-current@FreeBSD.org, pjd@FreeBSD.org, hselasky@c2i.net Subject: Re: Patch for rc.d/devd on FreeBSD 9-current 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: Mon, 28 Jun 2010 08:25:37 -0000 "M. Warner Losh" writes: > Maybe the real problem is that devd locks the file, then dies. The > file remains locked, so the flopen is failing with EWOULDBLOCK. The lock is released when the process that holds it terminates. > But I suspect the real real problem is the implicit assumption that > flock will release the lock when a process terminates... That isn't > the case in BSD Yes it is. DES --=20 Dag-Erling Sm=C3=B8rgrav - des@des.no