mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-03 09:01:50 -05:00
daemon: first take name on the bus, then return in starter process
http://pulseaudio.org/ticket/748
This commit is contained in:
parent
acb4996203
commit
93cb75d78e
1 changed files with 4 additions and 4 deletions
|
|
@ -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;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue