cloexec: set FD_CLOEXEC for all full duplex pipes
authorLennart Poettering <lennart@poettering.net>
Wed, 22 Apr 2009 02:22:51 +0000 (04:22 +0200)
committerLennart Poettering <lennart@poettering.net>
Wed, 20 May 2009 00:09:31 +0000 (02:09 +0200)
commit44f3a1465a5a3f6d2e022409a960443441662629
tree7ade2ca895107f2b5f7de12bbe3bb619cf863477
parent004f01fa451b0341e7ea69ce7f08a1c4690f759a
cloexec: set FD_CLOEXEC for all full duplex pipes

All users of full duplex pipes enable FD_CLOEXEC later anyway so let's
just do it as part of _dbus_full_duplex_pipe. By side effect this allows
to make use of SOCK_CLOEXEC which fixes a race when forking/execing from
a different thread at the same time as we ar in this function.
bus/main.c
dbus/dbus-server-debug-pipe.c
dbus/dbus-spawn.c
dbus/dbus-sysdeps-unix.c