mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2026-05-29 21:37:54 -04:00
treewide: make more file descriptors cloexec
Avoid file descriptor leakage into child processes by marking them `O_CLOEXEC`.
This commit is contained in:
parent
6ef23a1a9a
commit
e5b741732d
9 changed files with 9 additions and 9 deletions
|
|
@ -344,7 +344,7 @@ PWTEST(logger_debug_env_invalid)
|
|||
/* The error message during pw_init() will go to stderr because no
|
||||
* logger has been set up yet. Intercept that in our temp file */
|
||||
pwtest_mkstemp(fname);
|
||||
fd = open(fname, O_RDWR);
|
||||
fd = open(fname, O_RDWR | O_CLOEXEC);
|
||||
pwtest_errno_ok(fd);
|
||||
rc = dup2(fd, STDERR_FILENO);
|
||||
setlinebuf(stderr);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue