From 62e362f87a4c036ca77ae8baa106139fd5b4ebe5 Mon Sep 17 00:00:00 2001 From: Theo de Raadt Date: Wed, 18 Jun 1997 09:53:39 +0000 Subject: act in-Initialized inside part of die(); avoids printing mangled log entry; joerg --- usr.sbin/syslogd/syslogd.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/usr.sbin/syslogd/syslogd.c b/usr.sbin/syslogd/syslogd.c index 68d5b188c83..b2b6b324281 100644 --- a/usr.sbin/syslogd/syslogd.c +++ b/usr.sbin/syslogd/syslogd.c @@ -850,13 +850,16 @@ die(signo) int signo; { struct filed *f; + int was_initialized = Initialized; char buf[100]; + Initialized = 0; /* Don't log SIGCHLDs */ for (f = Files; f != NULL; f = f->f_next) { /* flush any pending output */ if (f->f_prevcount) fprintlog(f, 0, (char *)NULL); } + Initialized = was_initialized; if (signo) { dprintf("syslogd: exiting on signal %d\n", signo); (void)sprintf(buf, "exiting on signal %d", signo); -- cgit v1.2.3