summaryrefslogtreecommitdiffstats
path: root/src/pulsecore/sound-file-stream.c
diff options
context:
space:
mode:
authorDaniel Mack <daniel@caiaq.de>2009-10-31 02:16:14 +0100
committerDaniel Mack <daniel@caiaq.de>2009-10-31 02:16:14 +0100
commitc4e276edbd84cbb8c5b594c9f427b0a25a7fb2ab (patch)
tree55c0d0f8e378e5e6fe203b250a816ea4d2d75ccb /src/pulsecore/sound-file-stream.c
parent9c61465c796f3369c7cc57c094489fb383216a1b (diff)
parent2dc37e1214f20aab528ae680e9a85fc8ea143313 (diff)
Merge branch 'master' of git://0pointer.de/pulseaudio
Diffstat (limited to 'src/pulsecore/sound-file-stream.c')
-rw-r--r--src/pulsecore/sound-file-stream.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/pulsecore/sound-file-stream.c b/src/pulsecore/sound-file-stream.c
index 16de4923..53674ba1 100644
--- a/src/pulsecore/sound-file-stream.c
+++ b/src/pulsecore/sound-file-stream.c
@@ -252,11 +252,7 @@ int pa_play_file(
u->readf_function = NULL;
u->memblockq = NULL;
- 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 fail;
}