]> git.ipfire.org Git - thirdparty/systemd.git/commit
process-util: add new FORK_CLOEXEC_OFF flag for disabling O_CLOEXEC on remaining fds
authorLennart Poettering <lennart@poettering.net>
Fri, 4 Nov 2022 17:20:47 +0000 (18:20 +0100)
committerLennart Poettering <lennart@poettering.net>
Fri, 4 Nov 2022 17:53:36 +0000 (18:53 +0100)
commit981cfbe046297a18f2cb115ef81202f3bd68d2a3
treeb95bedf258b021efb41b5b5f4006ff4245c04759
parented18c22c989495aab36512f03449222cfcf79aa7
process-util: add new FORK_CLOEXEC_OFF flag for disabling O_CLOEXEC on remaining fds

Often the fds that shall stay around in the child shall be passed
to a process over execve(), hence add an option to explicitly disable
O_CLOEXEC on them in the child.
src/basic/process-util.c
src/basic/process-util.h