cloexec: set all sockets that are created with SOCK_CLOEXEC
authorLennart Poettering <lennart@poettering.net>
Wed, 6 May 2009 01:41:50 +0000 (03:41 +0200)
committerLennart Poettering <lennart@poettering.net>
Wed, 20 May 2009 00:09:31 +0000 (02:09 +0200)
commit89318bbeb4076d8d9de9831d69621fc1411760d3
tree3689cfb43a9aa8e681129120032098d219d9d3e8
parent3c319c71938ab06cf6f1750750927ffb5c200de4
cloexec: set all sockets that are created with SOCK_CLOEXEC

Since all socket users enable FD_CLOEXEC anyway we can just do that in
_dbus_open_socket() and be done with it for all cases. By side effect
this allows us to use SOCK_CLOEXEC and hence close the CLOEXEC race.
configure.in
dbus/dbus-server-socket.c
dbus/dbus-server-unix.c
dbus/dbus-sysdeps-unix.c
dbus/dbus-transport-socket.c
dbus/dbus-transport-unix.c