add new switch --start to the PA binary which allows starting PA if it is not running yet. In contrast to normal startup an already running PA will not be considered an error. Also, take the autospawn lock so we can guarantee that after this call returns PA is ralive and running

git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@2513 fefdeb5f-60dc-0310-8127-8f9354f1896f
This commit is contained in:
Lennart Poettering 2008-06-11 17:38:50 +00:00
parent c33db3ce68
commit ac0f5275c5
5 changed files with 72 additions and 7 deletions

View file

@ -220,6 +220,7 @@ int pa_pid_file_create(const char *procname) {
if (ours) {
pa_log("Daemon already running.");
ret = 1;
goto fail;
}
}