mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-02 09:01:46 -05:00
make use F_CLOEXEC wherever useful
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@174 fefdeb5f-60dc-0310-8127-8f9354f1896f
This commit is contained in:
parent
348738751c
commit
5f52999c01
9 changed files with 35 additions and 1 deletions
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue