mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-05 13:29:57 -05:00
use cloexec wrappers wherever applicable
This commit is contained in:
parent
9c1a98953f
commit
65e7bc18a9
25 changed files with 39 additions and 91 deletions
|
|
@ -62,11 +62,7 @@ int pa_sound_file_load(
|
|||
|
||||
pa_memchunk_reset(chunk);
|
||||
|
||||
if ((fd = open(fname, O_RDONLY
|
||||
#ifdef O_NOCTTY
|
||||
|O_NOCTTY
|
||||
#endif
|
||||
)) < 0) {
|
||||
if ((fd = pa_open_cloexec(fname, O_RDONLY, 0)) < 0) {
|
||||
pa_log("Failed to open file %s: %s", fname, pa_cstrerror(errno));
|
||||
goto finish;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue