Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 28 Jun 2010 10:23:25 +0200
From:      =?utf-8?Q?Dag-Erling_Sm=C3=B8rgrav?= <des@des.no>
To:        "M. Warner Losh" <imp@bsdimp.com>
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
Message-ID:  <86iq537egy.fsf@ds4.des.no>
In-Reply-To: <20100627.201716.1108826596298620201.imp@bsdimp.com> (M. Warner Losh's message of "Sun, 27 Jun 2010 20:17:16 -0600 (MDT)")
References:  <AANLkTilnYGNz7V6z6AkeKsqUvOMN8yLvO57GM1gOIsTD@mail.gmail.com> <20100627.160845.256787458594170652.imp@bsdimp.com> <AANLkTikI223vbyBdEqLuA6FjcBBeQcqFujOimP5horsv@mail.gmail.com> <20100627.201716.1108826596298620201.imp@bsdimp.com>

next in thread | previous in thread | raw e-mail | index | archive | help
"M. Warner Losh" <imp@bsdimp.com> 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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?86iq537egy.fsf>