diff --git a/src/rshim.c b/src/rshim.c index 9605b96..47c74f7 100644 --- a/src/rshim.c +++ b/src/rshim.c @@ -3505,7 +3505,8 @@ int main(int argc, char *argv[]) cleanup_pid_file(PID_FILE, pid_fd); +#ifdef HAVE_SYSLOG_H closelog(); - +#endif return 0; }