diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 1997-06-18 09:53:39 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 1997-06-18 09:53:39 +0000 |
commit | 62e362f87a4c036ca77ae8baa106139fd5b4ebe5 (patch) | |
tree | f7c2a925ef19fd17c781c814002934bc1d532ef6 | |
parent | 7f41223b8dd179beaa95e2cba8cb36dc94d0637e (diff) |
act in-Initialized inside part of die(); avoids printing mangled log entry; joerg
-rw-r--r-- | usr.sbin/syslogd/syslogd.c | 3 |
1 files changed, 3 insertions, 0 deletions
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); |