Add support for building tsyslogd and syslog_tst again

Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
This commit is contained in:
Joachim Nilsson
2019-10-22 16:41:52 +02:00
parent d0360f47ed
commit 1004498697
4 changed files with 12 additions and 1 deletions

View File

@ -1187,6 +1187,7 @@ int main(int argc, char *argv[])
restart = 0;
logit("\nReceived SIGHUP, reloading syslogd.\n");
init();
#ifndef TESTING
if (check_pid(PidFile)) {
if (touch_pid(PidFile))
logerror("Not possible to touch pidfile");
@ -1194,6 +1195,7 @@ int main(int argc, char *argv[])
if (!write_pid(PidFile))
logerror("Failed to write pidfile");
}
#endif
continue;
}
if (nfds == 0) {