[pulseaudio-commits] r1668 - in /branches/lennart/src: pulse/mainloop.c pulsecore/fdsem.c

svnmailer-noreply at 0pointer.de svnmailer-noreply at 0pointer.de
Wed Aug 15 13:47:54 PDT 2007


Author: lennart
Date: Wed Aug 15 22:47:53 2007
New Revision: 1668

URL: http://0pointer.de/cgi-bin/viewcvs.cgi?rev=3D1668&root=3Dpulseaudio&vi=
ew=3Drev
Log:
set CLOEXEC on more fds

Modified:
    branches/lennart/src/pulse/mainloop.c
    branches/lennart/src/pulsecore/fdsem.c

Modified: branches/lennart/src/pulse/mainloop.c
URL: http://0pointer.de/cgi-bin/viewcvs.cgi/branches/lennart/src/pulse/main=
loop.c?rev=3D1668&root=3Dpulseaudio&r1=3D1667&r2=3D1668&view=3Ddiff
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D
--- branches/lennart/src/pulse/mainloop.c (original)
+++ branches/lennart/src/pulse/mainloop.c Wed Aug 15 22:47:53 2007
@@ -460,6 +460,8 @@
 =

     pa_make_nonblock_fd(m->wakeup_pipe[0]);
     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 =3D 0;
 =

     PA_LLIST_HEAD_INIT(pa_io_event, m->io_events);

Modified: branches/lennart/src/pulsecore/fdsem.c
URL: http://0pointer.de/cgi-bin/viewcvs.cgi/branches/lennart/src/pulsecore/=
fdsem.c?rev=3D1668&root=3Dpulseaudio&r1=3D1667&r2=3D1668&view=3Ddiff
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D
--- branches/lennart/src/pulsecore/fdsem.c (original)
+++ branches/lennart/src/pulsecore/fdsem.c Wed Aug 15 22:47:53 2007
@@ -53,6 +53,9 @@
         pa_xfree(f);
         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->signalled, 0);




More information about the pulseaudio-commits mailing list