mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-04 13:30:12 -05:00
Make all fopen() calls use O_CLOEXEC
by adding "e" to the mode strings.
This commit is contained in:
parent
400860f63c
commit
bb4f274ae0
10 changed files with 23 additions and 23 deletions
|
|
@ -195,7 +195,7 @@ int create_pid_file(void) {
|
|||
|
||||
strcat(pid_file, "/pid");
|
||||
|
||||
if ((f = fopen(pid_file, "w")) == NULL) {
|
||||
if ((f = fopen(pid_file, "we")) == NULL) {
|
||||
res = -errno;
|
||||
pw_log_error("failed to open pid file: %m");
|
||||
return res;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue