From b1369d29079bee2c8d96ad698da9ec43f569c0e5 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Wed, 15 Dec 2004 01:17:04 +0000 Subject: [PATCH] * fix error message when starting polypaudio while it is already running git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@326 fefdeb5f-60dc-0310-8127-8f9354f1896f --- polyp/main.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/polyp/main.c b/polyp/main.c index f033c38..c5b3a7e 100644 --- a/polyp/main.c +++ b/polyp/main.c @@ -271,7 +271,7 @@ int main(int argc, char *argv[]) { } if (retval) - pa_log(__FILE__": daemon startup failed .\n"); + pa_log(__FILE__": daemon startup failed.\n"); else pa_log_info(__FILE__": daemon startup successful.\n"); @@ -308,8 +308,10 @@ int main(int argc, char *argv[]) { chdir("/"); if (conf->use_pid_file) { - if (pa_pid_file_create() < 0) + if (pa_pid_file_create() < 0) { + pa_loop_write(daemon_pipe[1], &retval, sizeof(retval)); goto finish; + } valid_pid_file = 1; } -- 2.7.4