summaryrefslogtreecommitdiffstats
path: root/dbus/dbus-server-debug-pipe.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2009-04-22 04:22:51 +0200
committerLennart Poettering <lennart@poettering.net>2009-05-20 02:09:31 +0200
commit44f3a1465a5a3f6d2e022409a960443441662629 (patch)
tree7ade2ca895107f2b5f7de12bbe3bb619cf863477 /dbus/dbus-server-debug-pipe.c
parent004f01fa451b0341e7ea69ce7f08a1c4690f759a (diff)
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.
Diffstat (limited to 'dbus/dbus-server-debug-pipe.c')
-rw-r--r--dbus/dbus-server-debug-pipe.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/dbus/dbus-server-debug-pipe.c b/dbus/dbus-server-debug-pipe.c
index 24b0ce34..b59f7491 100644
--- a/dbus/dbus-server-debug-pipe.c
+++ b/dbus/dbus-server-debug-pipe.c
@@ -253,9 +253,6 @@ _dbus_transport_debug_pipe_new (const char *server_name,
return NULL;
}
- _dbus_fd_set_close_on_exec (client_fd);
- _dbus_fd_set_close_on_exec (server_fd);
-
client_transport = _dbus_transport_new_for_socket (client_fd,
NULL, &address);
if (client_transport == NULL)