From aa582a7b3249c9344be586bc3bbcd9848906f431 Mon Sep 17 00:00:00 2001 From: john30 Date: Sat, 20 Feb 2016 13:50:58 +0100 Subject: [PATCH] corrected PID file usage --- src/ebusd/main.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ebusd/main.cpp b/src/ebusd/main.cpp index 9a6fab9c..d23fa1c1 100644 --- a/src/ebusd/main.cpp +++ b/src/ebusd/main.cpp @@ -435,7 +435,7 @@ void daemonize() } } if (pidFile == NULL) { - logError(lf_main, "can't open pidfile: " PID_FILE_NAME); + logError(lf_main, "can't open pidfile: %s", opt.pidFile); exit(EXIT_FAILURE); } @@ -448,7 +448,7 @@ void closePidFile() if (fclose(pidFile) != 0) return; - remove(PID_FILE_NAME); + remove(opt.pidFile); } }