From 5f52999c016495be1c34effdacd230a79cb52d0b Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Wed, 1 Sep 2004 22:36:49 +0000 Subject: make use F_CLOEXEC wherever useful git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@174 fefdeb5f-60dc-0310-8127-8f9354f1896f --- polyp/oss-util.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'polyp/oss-util.c') 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 #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; -- cgit