diff options
| author | 1997-06-18 09:53:38 +0000 | |
|---|---|---|
| committer | 1997-06-18 09:53:38 +0000 | |
| commit | 469e594714b7816e86a474b8ef46132000ea1fa5 (patch) | |
| tree | eb7fb2a8a2372bfbba4f3cceaf898e22b0280593 /usr.sbin/syslogd/syslogd.c | |
| parent | unlink ktrace file more carefully; wosch/joerg (diff) | |
| download | wireguard-openbsd-469e594714b7816e86a474b8ef46132000ea1fa5.tar.xz wireguard-openbsd-469e594714b7816e86a474b8ef46132000ea1fa5.zip | |
act in-Initialized inside part of die(); avoids printing mangled log entry; joerg
Diffstat (limited to 'usr.sbin/syslogd/syslogd.c')
| -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); |
