summaryrefslogtreecommitdiffstats
path: root/bus/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'bus/main.c')
-rw-r--r--bus/main.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/bus/main.c b/bus/main.c
index b4ace1e4..adf49470 100644
--- a/bus/main.c
+++ b/bus/main.c
@@ -193,6 +193,9 @@ 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);