This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: [PATCH,HURD] Fix __dup2 _hurd_dtable_lock usage.
- From: Roland McGrath <roland at redhat dot com>
- To: Samuel Thibault <samuel dot thibault at ens-lyon dot org>
- Cc: libc-alpha at sources dot redhat dot com
- Date: Wed, 7 Jan 2009 18:10:19 -0800 (PST)
- Subject: Re: [PATCH,HURD] Fix __dup2 _hurd_dtable_lock usage.
- References: <20090107230146.GA4991@const.famille.thibault.fr>
It also should start its critical section before the first lookup.
And I think the unlock/relock case has a lock order problem in case
of other threads that hold _hurd_dtable_lock while getting an fd spin lock.
Can you try to fix it all the way?
Thanks,
Roland