daemon: first take name on the bus, then return in starter process

http://pulseaudio.org/ticket/748
This commit is contained in:
Lennart Poettering 2010-01-14 02:33:49 +01:00
parent acb4996203
commit 93cb75d78e

View file

@ -952,6 +952,10 @@ int main(int argc, char *argv[]) {
goto finish; goto finish;
} }
#ifdef HAVE_DBUS
dbus = register_dbus(c);
#endif
#ifdef HAVE_FORK #ifdef HAVE_FORK
if (daemon_pipe[1] >= 0) { if (daemon_pipe[1] >= 0) {
int ok = 0; int ok = 0;
@ -961,10 +965,6 @@ int main(int argc, char *argv[]) {
} }
#endif #endif
#ifdef HAVE_DBUS
dbus = register_dbus(c);
#endif
pa_log_info(_("Daemon startup complete.")); pa_log_info(_("Daemon startup complete."));
retval = 0; retval = 0;