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: "fweimer at redhat dot com" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sourceware dot org
- Date: Mon, 12 Sep 2016 11:02:46 +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
Florian Weimer <fweimer at redhat dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Flags| |security-
--- Comment #1 from Florian Weimer <fweimer at redhat dot com> ---
Is it really fork and not exit? If I replace exit with _exit, the endless loop
goes away.
The cause appears to be that unbuffering read-only streams needs to adjust the
file descriptor seek offset, otherwise the next character read would be wrong.
--
You are receiving this mail because:
You are on the CC list for the bug.