This is the mail archive of the
java-patches@gcc.gnu.org
mailing list for the Java project.
Re: [Patch] PR 31228, Fix close-on-exec race.
- From: Tom Tromey <tromey at redhat dot com>
- To: David Daney <ddaney at avtrex dot com>
- Cc: java-patches at gcc dot gnu dot org
- Date: 20 Mar 2007 15:10:55 -0600
- Subject: Re: [Patch] PR 31228, Fix close-on-exec race.
- References: <45FE35C1.9060805@avtrex.com>
- Reply-to: tromey at redhat dot com
>>>>> "David" == David Daney <ddaney@avtrex.com> writes:
David> I hope someone can think of a better way to fix the race. If
David> only there were some way to set the default value of the
David> FD_CLOEXEC flag...
We could wrap each "open + set FD_CLOEXEC" in a mutex, and do the same
for the fork.
Tom