mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-06 13:29:56 -05:00
set CLOEXEC on more fds
git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1668 fefdeb5f-60dc-0310-8127-8f9354f1896f
This commit is contained in:
parent
5679de5cfc
commit
33c6f9dd52
2 changed files with 5 additions and 0 deletions
|
|
@ -460,6 +460,8 @@ pa_mainloop *pa_mainloop_new(void) {
|
||||||
|
|
||||||
pa_make_nonblock_fd(m->wakeup_pipe[0]);
|
pa_make_nonblock_fd(m->wakeup_pipe[0]);
|
||||||
pa_make_nonblock_fd(m->wakeup_pipe[1]);
|
pa_make_nonblock_fd(m->wakeup_pipe[1]);
|
||||||
|
pa_fd_set_cloexec(m->wakeup_pipe[0], 1);
|
||||||
|
pa_fd_set_cloexec(m->wakeup_pipe[1], 1);
|
||||||
m->wakeup_requested = 0;
|
m->wakeup_requested = 0;
|
||||||
|
|
||||||
PA_LLIST_HEAD_INIT(pa_io_event, m->io_events);
|
PA_LLIST_HEAD_INIT(pa_io_event, m->io_events);
|
||||||
|
|
|
||||||
|
|
@ -54,6 +54,9 @@ pa_fdsem *pa_fdsem_new(void) {
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
pa_fd_set_cloexec(f->fds[0], 1);
|
||||||
|
pa_fd_set_cloexec(f->fds[1], 1);
|
||||||
|
|
||||||
pa_atomic_store(&f->waiting, 0);
|
pa_atomic_store(&f->waiting, 0);
|
||||||
pa_atomic_store(&f->signalled, 0);
|
pa_atomic_store(&f->signalled, 0);
|
||||||
pa_atomic_store(&f->in_pipe, 0);
|
pa_atomic_store(&f->in_pipe, 0);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue