mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-02 09:01:50 -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
|
|
@ -357,7 +357,7 @@ impl_init(const struct spa_handle_factory *factory,
|
|||
if ((str = spa_dict_lookup(info, SPA_KEY_LOG_LEVEL)) != NULL)
|
||||
this->log.level = atoi(str);
|
||||
if ((str = spa_dict_lookup(info, SPA_KEY_LOG_FILE)) != NULL) {
|
||||
this->file = fopen(str, "w");
|
||||
this->file = fopen(str, "we");
|
||||
if (this->file == NULL)
|
||||
fprintf(stderr, "Warning: failed to open file %s: (%m)", str);
|
||||
else
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue