[RFC] Shall we loop on EINTR for fclose too?

Paolo Carlini pcarlini@suse.de
Sun Aug 29 14:01:00 GMT 2004


Carlo Wood wrote:

>This is code from my current project:
>
>    while ((failure = (::close(M_fd) == -1)) && errno == EINTR);
>
>I guess that I agree thus ;).
>
Ok ;)

The below is what I have already regtested on x86/ia64-linux. I mean to 
apply
it to mainline (where would be further tested on many different archs) on
monday, if I don't receive problematic comments in the meanwhile...

Paolo.

////////////////
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: CL_17215
URL: <http://gcc.gnu.org/pipermail/libstdc++/attachments/20040829/00cacf66/attachment.ksh>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: patch_17215
URL: <http://gcc.gnu.org/pipermail/libstdc++/attachments/20040829/00cacf66/attachment-0001.ksh>


More information about the Libstdc++ mailing list