This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: PATCH: Eliminate uses of "sleep" in V3 testsuite
Mark Mitchell wrote:
So, Zack avoided the problem that the HP-UX kernel refuses to open a
FIFO with O_WRONLY | O_TRUNC, but now we have a race condition. I
think that the best solution is to remove the child process. Thoughts?
Ok, now I see what you mean, and I agree with your analysis (but you are
using the technical terms "child" and "parent" rather unorthodoxly wrt
your book on Linux Programming ;) : what really count here, is that,
when an "ate" open fails, we close the fail and return error (i.e.,
null). The other process is not doing anything useful.
Paolo.