This is the mail archive of the glibc-bugs@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug stdio/20598] fork clobbers file offsets


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.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]