From 4e74f9783a81f22a70917587833e46b80d4fea18 Mon Sep 17 00:00:00 2001 From: Joachim Wiberg Date: Sat, 14 Jan 2023 14:28:42 +0100 Subject: [PATCH] test: minor fix to 'serv' test service Signed-off-by: Joachim Wiberg --- test/common/serv.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/common/serv.c b/test/common/serv.c index 102f2c7e..a9b6738c 100644 --- a/test/common/serv.c +++ b/test/common/serv.c @@ -253,7 +253,7 @@ int main(int argc, char *argv[]) mine(melange); /* Tell world where we are, but not if bg w/o pid file */ - if (do_pidfile == 1) + if (do_pidfile > 0) pidfile(pidfn); if (!do_notify) { @@ -288,7 +288,7 @@ int main(int argc, char *argv[]) do_notify = 0; } } - if (do_pidfile) + if (do_pidfile > 0) pidfile(NULL); reloading = 0; }