fork() + file descriptor bug in 1.7.27(0.271/5/3) 2013-12-09 11:54
Eric Blake
eblake@redhat.com
Fri Jan 17 20:11:00 GMT 2014
On 01/14/2014 09:53 PM, Lord Laraby wrote:
> My two cents say, since the child is not referencing 'fp' at all,
> there is no violation of the POSIX semantics in this situation.
But the child _IS_ referencing 'fp', via the implicit fflush(NULL) done
by exit(). If you use _exit() to bypass that implicit fflush, things
are a lot nicer.
--
Eric Blake eblake redhat com +1-919-301-3266
Libvirt virtualization library http://libvirt.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 604 bytes
Desc: OpenPGP digital signature
URL: <http://cygwin.com/pipermail/cygwin/attachments/20140117/4dd9be24/attachment.sig>
More information about the Cygwin
mailing list