[Bug c/46672] Problem with fork and buffer
debayanin at gmail dot com
gcc-bugzilla@gcc.gnu.org
Fri Nov 26 11:06:00 GMT 2010
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46672
Debayan Banerjee <debayanin at gmail dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|RESOLVED |UNCONFIRMED
Resolution|INVALID |
--- Comment #2 from Debayan Banerjee <debayanin at gmail dot com> 2010-11-26 10:44:45 UTC ---
(In reply to comment #1)
> Concurrent writes to stdout (any files) invoke undefined behavior.
I dont think its undefined. For my compiler it always produces this output. I
tried the same on http://ideone.com (dont know which compiler they are using)
and it prints the correct output.
Also, doesnt each process have its own stdout?
More information about the Gcc-bugs
mailing list