mirror of
https://github.com/clearlinux/systemd-stable.git
synced 2026-10-19 22:51:48 +00:00
util: explicitly turn of O_CLOEXEC for stdin/stdout/stderr
This commit is contained in:
@@ -2947,6 +2947,10 @@ int make_stdio(int fd) {
|
||||
if (r < 0 || s < 0 || t < 0)
|
||||
return -errno;
|
||||
|
||||
fd_cloexec(STDIN_FILENO, false);
|
||||
fd_cloexec(STDOUT_FILENO, false);
|
||||
fd_cloexec(STDERR_FILENO, false);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user