mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2026-06-29 13:14:14 -04:00
conf: avoid using close_range when undefined
Only call close_range when CLOSE_RANGE_UNSHARE is defined. Fixes compilation on alpine.
This commit is contained in:
parent
559a30b0b4
commit
7dac6a71d5
1 changed files with 2 additions and 0 deletions
|
|
@ -982,7 +982,9 @@ static int do_exec(struct pw_context *context, char *const *argv)
|
|||
for (p = argv; *p; ++p)
|
||||
spa_strbuf_append(&s, " '%s'", *p);
|
||||
|
||||
#ifdef CLOSE_RANGE_UNSHARE
|
||||
close_range(3, ~0U, CLOSE_RANGE_UNSHARE);
|
||||
#endif
|
||||
|
||||
pw_log_info("exec%s", s.buffer);
|
||||
res = execvp(argv[0], argv);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue