summaryrefslogtreecommitdiffstats
path: root/dbus/dbus-transport-unix.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2009-05-06 03:41:50 +0200
committerLennart Poettering <lennart@poettering.net>2009-05-20 02:09:31 +0200
commit89318bbeb4076d8d9de9831d69621fc1411760d3 (patch)
tree3689cfb43a9aa8e681129120032098d219d9d3e8 /dbus/dbus-transport-unix.c
parent3c319c71938ab06cf6f1750750927ffb5c200de4 (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-unix.c')
-rw-r--r--dbus/dbus-transport-unix.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/dbus/dbus-transport-unix.c b/dbus/dbus-transport-unix.c
index a13fde17..777c9411 100644
--- a/dbus/dbus-transport-unix.c
+++ b/dbus/dbus-transport-unix.c
@@ -85,8 +85,6 @@ _dbus_transport_new_for_domain_socket (const char *path,
goto failed_0;
}
- _dbus_fd_set_close_on_exec (fd);
-
_dbus_verbose ("Successfully connected to unix socket %s\n",
path);