diff options
author | Colin Walters <walters@verbum.org> | 2004-10-29 19:59:15 +0000 |
---|---|---|
committer | Colin Walters <walters@verbum.org> | 2004-10-29 19:59:15 +0000 |
commit | e430788a6bfb50c628825cdf6e09476e41dc1a78 (patch) | |
tree | 8e2a4623d1acf89fa157ecb1e3ca952e45a49cad /bus | |
parent | fbc29a8a78edae303e997f1a98d6b4618ea7868a (diff) |
2004-10-29 Colin Walters <walters@redhat.com>
* 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)
Diffstat (limited to 'bus')
-rw-r--r-- | bus/bus.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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; |