From e430788a6bfb50c628825cdf6e09476e41dc1a78 Mon Sep 17 00:00:00 2001 From: Colin Walters Date: Fri, 29 Oct 2004 19:59:15 +0000 Subject: 2004-10-29 Colin Walters * dbus/dbus-sysdeps.h (_dbus_become_daemon): Also take parameter for fd to write pid to. * dbus/dbus-sysdeps.c (_dbus_become_daemon): Implement it. * bus/bus.c (bus_context_new): Pass print_pid_fd to _dbus_become_daemon (bug #1720) --- bus/bus.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'bus') diff --git a/bus/bus.c b/bus/bus.c index 043f2e1e..b34e635c 100644 --- a/bus/bus.c +++ b/bus/bus.c @@ -663,7 +663,9 @@ bus_context_new (const DBusString *config_file, if (context->pidfile) _dbus_string_init_const (&u, context->pidfile); - if (!_dbus_become_daemon (context->pidfile ? &u : NULL, error)) + if (!_dbus_become_daemon (context->pidfile ? &u : NULL, + print_pid_fd, + error)) { _DBUS_ASSERT_ERROR_IS_SET (error); goto failed; -- cgit