This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug stdio/22834] Subprocess forked by popen may crash in Linux when multithreads call popen
- From: "fweimer at redhat dot com" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sourceware dot org
- Date: Sun, 11 Feb 2018 15:13:10 +0000
- Subject: [Bug stdio/22834] Subprocess forked by popen may crash in Linux when multithreads call popen
- Auto-submitted: auto-generated
- References: <bug-22834-131@http.sourceware.org/bugzilla/>
https://sourceware.org/bugzilla/show_bug.cgi?id=22834
--- Comment #2 from Florian Weimer <fweimer at redhat dot com> ---
So the strangeness here is that the O_CLOEXEC is optional in the parent
process. The implementation assumes that other popen descriptors always closed
by popen in its subprocess, but for execve, the closing is optional.
I'm not sure what POSIX intends here.
--
You are receiving this mail because:
You are on the CC list for the bug.