mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2026-05-06 06:46:29 -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
8344117e7b
commit
ccfb61efa4
9 changed files with 11 additions and 11 deletions
|
|
@ -758,7 +758,7 @@ static bool parse_clock_id(struct impl *this, const char *s)
|
|||
|
||||
static bool parse_clock_device(struct impl *this, const char *s)
|
||||
{
|
||||
int fd = open(s, O_RDONLY);
|
||||
int fd = open(s, O_RDONLY | O_CLOEXEC);
|
||||
if (fd == -1) {
|
||||
spa_log_info(this->log, "failed to open clock device '%s': %m", s);
|
||||
return false;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue