https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66202
Thomas Koenig <tkoenig at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED CC| |tkoenig at gcc dot gnu.org Resolution|--- |INVALID --- Comment #1 from Thomas Koenig <tkoenig at gcc dot gnu.org> --- This is a bug tracker for gcc. Your problem appears to be with details of the interaction of fork() with C's standard I/O, which is more of a general programming question. Your question would be more appropriate in several other forums, for example the Usenet newgroup comp.unix.programmer or stackoverflow.com