Since we're on it, only call closelog() if openlog() was called. There is no crash if we do that, but still it's not very correct. Signed-off-by: Pete Zaitcev <zaitcev@xxxxxxxxxx> --- server/server.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) commit ae8ac067adde81a34c9d6114cfbaa1f95c9b48da Author: Pete Zaitcev <zaitcev@xxxxxxxxx> Date: Thu Aug 12 12:33:39 2010 -0600 Syslog cleanup. diff --git a/server/server.c b/server/server.c index 829d2db..7a9fb7a 100644 --- a/server/server.c +++ b/server/server.c @@ -2344,7 +2344,8 @@ err_evpipe: unlink(tabled_srv.pid_file); close(tabled_srv.pid_fd); err_out: - closelog(); + if (use_syslog) + closelog(); return rc; } -- To unsubscribe from this list: send the line "unsubscribe hail-devel" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html