summaryrefslogtreecommitdiffstats
path: root/polyp/oss-util.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2004-09-01 22:36:49 +0000
committerLennart Poettering <lennart@poettering.net>2004-09-01 22:36:49 +0000
commit5f52999c016495be1c34effdacd230a79cb52d0b (patch)
treed4c0cadb808185ae8d8c6b03dea370b33cce78e5 /polyp/oss-util.c
parent348738751c50c7d3c4c9ed22801a0c2cb917b790 (diff)
make use F_CLOEXEC wherever useful
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@174 fefdeb5f-60dc-0310-8127-8f9354f1896f
Diffstat (limited to 'polyp/oss-util.c')
-rw-r--r--polyp/oss-util.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/polyp/oss-util.c b/polyp/oss-util.c
index 4fb2b929..b28c3dc9 100644
--- a/polyp/oss-util.c
+++ b/polyp/oss-util.c
@@ -35,6 +35,7 @@
#include <fcntl.h>
#include "oss-util.h"
+#include "util.h"
int pa_oss_open(const char *device, int *mode, int* pcaps) {
int fd = -1;
@@ -77,6 +78,8 @@ int pa_oss_open(const char *device, int *mode, int* pcaps) {
goto fail;
}
}
+
+ pa_fd_set_cloexec(fd, 1);
return fd;