test: minor fix to 'serv' test service

Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
This commit is contained in:
Joachim Wiberg committed 2023-01-15 06:34:05 +01:00
1 parent c3c662fe64
commit 4e74f9783a
1 file changed
+2 -2
+2 -2
View File
@@ -253,7 +253,7 @@ int main(int argc, char *argv[])
mine(melange); mine(melange);
/* Tell world where we are, but not if bg w/o pid file */ /* Tell world where we are, but not if bg w/o pid file */
if (do_pidfile == 1) if (do_pidfile > 0)
pidfile(pidfn); pidfile(pidfn);
if (!do_notify) { if (!do_notify) {
@@ -288,7 +288,7 @@ int main(int argc, char *argv[])
do_notify = 0; do_notify = 0;
} }
} }
if (do_pidfile) if (do_pidfile > 0)
pidfile(NULL); pidfile(NULL);
reloading = 0; reloading = 0;
} }