summaryrefslogtreecommitdiffstats
path: root/polyp/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'polyp/main.c')
-rw-r--r--polyp/main.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/polyp/main.c b/polyp/main.c
index c5b3a7e8..51c41439 100644
--- a/polyp/main.c
+++ b/polyp/main.c
@@ -309,7 +309,8 @@ int main(int argc, char *argv[]) {
if (conf->use_pid_file) {
if (pa_pid_file_create() < 0) {
- pa_loop_write(daemon_pipe[1], &retval, sizeof(retval));
+ if (conf->daemonize)
+ pa_loop_write(daemon_pipe[1], &retval, sizeof(retval));
goto finish;
}