diff options
author | Lennart Poettering <lennart@poettering.net> | 2009-04-22 04:22:51 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2009-05-20 02:09:31 +0200 |
commit | 44f3a1465a5a3f6d2e022409a960443441662629 (patch) | |
tree | 7ade2ca895107f2b5f7de12bbe3bb619cf863477 /bus | |
parent | 004f01fa451b0341e7ea69ce7f08a1c4690f759a (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 'bus')
-rw-r--r-- | bus/main.c | 3 |
1 files changed, 0 insertions, 3 deletions
@@ -208,9 +208,6 @@ setup_reload_pipe (DBusLoop *loop) exit (1); } - _dbus_fd_set_close_on_exec (reload_pipe[0]); - _dbus_fd_set_close_on_exec (reload_pipe[1]); - watch = _dbus_watch_new (reload_pipe[RELOAD_READ_END], DBUS_WATCH_READABLE, TRUE, handle_reload_watch, NULL, NULL); |