diff options
author | Lennart Poettering <lennart@poettering.net> | 2009-05-06 03:41:50 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2009-05-20 02:09:31 +0200 |
commit | 89318bbeb4076d8d9de9831d69621fc1411760d3 (patch) | |
tree | 3689cfb43a9aa8e681129120032098d219d9d3e8 /dbus/dbus-transport-socket.c | |
parent | 3c319c71938ab06cf6f1750750927ffb5c200de4 (diff) |
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.
Diffstat (limited to 'dbus/dbus-transport-socket.c')
-rw-r--r-- | dbus/dbus-transport-socket.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/dbus/dbus-transport-socket.c b/dbus/dbus-transport-socket.c index c9d4d93c..cc49c851 100644 --- a/dbus/dbus-transport-socket.c +++ b/dbus/dbus-transport-socket.c @@ -1324,8 +1324,6 @@ _dbus_transport_new_for_tcp_socket (const char *host, return NULL; } - _dbus_fd_set_close_on_exec (fd); - _dbus_verbose ("Successfully connected to tcp socket %s:%s\n", host, port); |