summaryrefslogtreecommitdiffstats
path: root/src/pulsecore/sound-file-stream.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2009-10-30 03:32:38 +0100
committerLennart Poettering <lennart@poettering.net>2009-10-30 03:32:38 +0100
commit65e7bc18a9a7b89e55b87a74ae47d45269b51847 (patch)
treeb9f58d76a78ecc0c03557bf7a7dad14cf28e15f9 /src/pulsecore/sound-file-stream.c
parent9c1a98953f25aff7f11af80a073c9c46dee2438c (diff)
use cloexec wrappers wherever applicable
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;
}