This is the mail archive of the
ecos-patches@sourceware.org
mailing list for the eCos project.
Re: Fix deadlock in close()
- From: Andrew Lunn <andrew at lunn dot ch>
- To: ?yvind Harboe <oyvind dot harboe at zylin dot com>
- Cc: eCos Disuss <ecos-patches at ecos dot sourceware dot org>
- Date: Tue, 29 Jan 2008 21:37:10 +0100
- Subject: Re: Fix deadlock in close()
- References: <c09652430801240333l49caa3c9g7aaa935b08ec5adf@mail.gmail.com>
On Thu, Jan 24, 2008 at 12:33:14PM +0100, ?yvind Harboe wrote:
> Allow filing system to access files during close(). Without
> this fix, any file access causes a deadlock during
> close().
It might stop a deadlock, but it opens up a race condition. Imaging a
close() and a dup() at the same time.
Andrew