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 libc/23640] no way to easily clear FD_CLOEXEC in posix_spawn_file_actions_adddup2()


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.

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