In message <52d55d96.8070...@redhat.com>you write:
>
>Your program may be violating POSIX, which would trigger undefined behavior.
>
>Quoting POSIX:
> pubs.opengroup.org/onlinepubs/9699919799/functions/V2_chap02.html#tag_15_05
>

[long quote elided]

Yikes!  That's pretty impenatrable.  And if it says what I think it says,
it seems to violate the way I've understood Unix fork() and how fds 
(and stdio buffers) are inherited since forever.

However..

Do I understand that to say that if the first thing my child does is

        fclose(fp);

everything should be hunky-dory?

Because I just tried that, and it's still not.

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

Reply via email to