From owner-freebsd-current@FreeBSD.ORG Mon Jun 28 14:21:01 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 8D8F11065729; Mon, 28 Jun 2010 14:21:01 +0000 (UTC) (envelope-from imp@bsdimp.com) Received: from harmony.bsdimp.com (bsdimp.com [199.45.160.85]) by mx1.freebsd.org (Postfix) with ESMTP id 441128FC0A; Mon, 28 Jun 2010 14:21:01 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by harmony.bsdimp.com (8.14.3/8.14.1) with ESMTP id o5SEHxx4084120; Mon, 28 Jun 2010 08:17:59 -0600 (MDT) (envelope-from imp@bsdimp.com) Date: Mon, 28 Jun 2010 08:18:10 -0600 (MDT) Message-Id: <20100628.081810.502133560696912792.imp@bsdimp.com> To: des@des.no From: "M. Warner Losh" In-Reply-To: <86iq537egy.fsf@ds4.des.no> References: <20100627.201716.1108826596298620201.imp@bsdimp.com> <86iq537egy.fsf@ds4.des.no> X-Mailer: Mew version 6.3 on Emacs 22.3 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=iso-8859-1 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 14:21:01 -0000 In message: <86iq537egy.fsf@ds4.des.no> Dag-Erling Sm=F8rgrav writes: : "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. So which process is that? devd took it out, and is subsequently killed. When it restarts, it can't take out the lock. The same code works perfectly in 8.0-stable from April. The conclusion, I believe, is that somebody broke locking in current... Warner