PATCH: Eliminate uses of "sleep" in V3 testsuite

Paolo Carlini pcarlini@suse.de
Wed Jan 5 11:58:00 GMT 2005


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.



More information about the Libstdc++ mailing list