]> code.delx.au - pulseaudio/blobdiff - polyp/oss-util.c
make use F_CLOEXEC wherever useful
[pulseaudio] / polyp / oss-util.c
index 4fb2b92989315177efa3f39dd6d3ae68ae8b3ecf..b28c3dc9526d6a8ca1844144c0471c63e82ab4ea 100644 (file)
@@ -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;