This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug stdio/20598] fork clobbers file offsets
- From: "schwab at linux-m68k dot org" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sourceware dot org
- Date: Mon, 12 Sep 2016 12:18:17 +0000
- Subject: [Bug stdio/20598] fork clobbers file offsets
- Auto-submitted: auto-generated
- References: <bug-20598-131@http.sourceware.org/bugzilla/>
https://sourceware.org/bugzilla/show_bug.cgi?id=20598
--- Comment #2 from Andreas Schwab <schwab@linux-m68k.org> ---
Yes, this is about the exit actually. But reading "2.5.1 Interaction of File
Descriptors and Standard I/O Streams", I think this is really undefined,
because the required action is not performed before the call to fork, and the
correct fix is to use _exit in the forked child.
--
You are receiving this mail because:
You are on the CC list for the bug.