diff options
author | Lennart Poettering <lennart@poettering.net> | 2008-06-11 17:38:50 +0000 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2008-06-11 17:38:50 +0000 |
commit | ac0f5275c5cbe72d5c81d9bb4aed4b9c2a5f5802 (patch) | |
tree | 7992890250cc83a91ad030768c8e54aa5c16bfb0 /src/pulsecore/pid.c | |
parent | c33db3ce68197cfe93f1fdf1b6459b1c7afb9057 (diff) |
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
Diffstat (limited to 'src/pulsecore/pid.c')
-rw-r--r-- | src/pulsecore/pid.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/pulsecore/pid.c b/src/pulsecore/pid.c index 9e93234f..dd2e699d 100644 --- a/src/pulsecore/pid.c +++ b/src/pulsecore/pid.c @@ -220,6 +220,7 @@ int pa_pid_file_create(const char *procname) { if (ours) { pa_log("Daemon already running."); + ret = 1; goto fail; } } |