[pulseaudio-discuss] Not only autospawning, but all PA daemon startup of any kind appears impossible with PA trunk

Nix nix at esperi.org.uk
Sat May 15 07:38:42 PDT 2010


Obviously I'm missing something, but this hunk of this change:

commit f1d1447e104c4f609c0e8c528b56ea6afa540b95
Author: Tanu Kaskinen <tanuk at iki.fi>
Date:   Sat Jan 9 11:55:15 2010 +0200

    daemon: Don't autospawn if a server address is explicitly configured.

@@ -649,6 +672,13 @@ int main(int argc, char *argv[]) {
         goto finish;
     }

+    if (conf->cmd == PA_CMD_START && (configured_address = check_configured_address())) {
+        pa_log_notice(_("User-configured server at %s, not autospawning."), configured_address);
+        pa_xfree(configured_address);
+        retval = 0;
+        goto finish;
+    }
+
     if (conf->system_instance && !conf->disallow_exit)
         pa_log_warn(_("Running in system mode, but --disallow-exit not set!"));

is not conditional on autospawning actually taking place: it will
trigger when the daemon is started conventionally.

Proof:

nix at mutilate 440 /home/nix% /usr/bin/pulseaudio --start
N: main.c: User-configured server at sound.srvr.nix, not autospawning.

Shouldn't this check autospawn_fd, or *something* initialized only when
autospawning? Or am I missing something? (I suspect I must be.)



More information about the pulseaudio-discuss mailing list