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:
Lennart Poettering 2004-09-01 22:36:49 +00:00
parent 348738751c
commit 5f52999c01
9 changed files with 35 additions and 1 deletions

View file

@ -143,6 +143,8 @@ int pa_module_init(struct pa_core *c, struct pa_module*m) {
goto fail;
}
pa_fd_set_cloexec(fd, 1);
if (fstat(fd, &st) < 0) {
fprintf(stderr, __FILE__": fstat('%s'): %s\n", p, strerror(errno));
goto fail;