Minor, don't touch PID file on SIGHUP in debug mode

Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
This commit is contained in:
Joachim Nilsson 2019-11-12 13:24:50 +01:00
parent f606667038
commit 095aa56996

View File

@ -438,7 +438,7 @@ int main(int argc, char *argv[])
logit("\nReceived SIGHUP, reloading syslogd.\n");
init();
if (pidfile(PidFile))
if (!Debug && pidfile(PidFile))
ERR("Failed writing %s", PidFile);
continue;
}