This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug libc/23640] no way to easily clear FD_CLOEXEC in posix_spawn_file_actions_adddup2()
- From: "adhemerval.zanella at linaro dot org" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sourceware dot org
- Date: Wed, 19 Sep 2018 15:33:00 +0000
- Subject: [Bug libc/23640] no way to easily clear FD_CLOEXEC in posix_spawn_file_actions_adddup2()
- Auto-submitted: auto-generated
- References: <bug-23640-131@http.sourceware.org/bugzilla/>
https://sourceware.org/bugzilla/show_bug.cgi?id=23640
Adhemerval Zanella <adhemerval.zanella at linaro dot org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |adhemerval.zanella at linaro dot o
| |rg
--- Comment #2 from Adhemerval Zanella <adhemerval.zanella at linaro dot org> ---
I think the rationale to have a posix_spawn operation to reset O_CLOEXEC is
reasonable, but I am not very found of having dup2 and
posix_spawn_file_actions_adddup2 with subtle different semantics: this usually
lead to wrong assumptions, since posix_spawn file actions are in fact modeled
based on POSIX counterparts.
I am not sure which would be the best extension to add though (maybe
posix_spawn_file_actions_fcntl?).
--
You are receiving this mail because:
You are on the CC list for the bug.