summaryrefslogtreecommitdiff
path: root/bus
diff options
context:
space:
mode:
Diffstat (limited to 'bus')
-rw-r--r--bus/main.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/bus/main.c b/bus/main.c
index 6e8859aa..84f601b3 100644
--- a/bus/main.c
+++ b/bus/main.c
@@ -423,6 +423,10 @@ main (int argc, char **argv)
error_str, _dbus_strerror (errno));
return 1;
}
+
+ /* Set all fds >= 3 close-on-execute. We don't want activated services
+ * to inherit fds we might have inherited from our caller. */
+ _dbus_fd_set_all_close_on_exec ();
#endif
if (!_dbus_string_init (&config_file))