projects
/
platform
/
upstream
/
pulseaudio.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
ratelimit: fix log levels of log suppression messages
[platform/upstream/pulseaudio.git]
/
src
/
pulsecore
/
sound-file.c
diff --git
a/src/pulsecore/sound-file.c
b/src/pulsecore/sound-file.c
index
2d9b76a
..
d8c10b1
100644
(file)
--- a/
src/pulsecore/sound-file.c
+++ b/
src/pulsecore/sound-file.c
@@
-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;
}