Don't guess pid file name, either there's one declared or not

The previous patch just added dynamic tracking of non-declared pid
files, so we no longer need to make stuff up.

Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
This commit is contained in:
Joachim Wiberg committed 2021-03-11 22:00:29 +01:00
1 parent 280608f30e
commit 572291a1d9
2 files changed
+3 -6

No files matched your search

+1 -1
View File
@@ -616,7 +616,7 @@ static void service_cleanup(svc_t *svc)
char *fn;
fn = pid_file(svc);
if (remove(fn) && errno != ENOENT)
if (fn && remove(fn) && errno != ENOENT)
logit(LOG_CRIT, "Failed removing service %s pidfile %s",
basename(svc->cmd), fn);