diff options
author | bluhm <bluhm@openbsd.org> | 2018-08-31 19:06:08 +0000 |
---|---|---|
committer | bluhm <bluhm@openbsd.org> | 2018-08-31 19:06:08 +0000 |
commit | 2091c1cbd81c9eb0437f36d35cf798b135db1069 (patch) | |
tree | 0fc5ef7412a59032e3721f0b0ae2fcd253f831fa /usr.sbin/syslogd | |
parent | the main process must chdir to /, since it cannot have daemon() do the (diff) | |
download | wireguard-openbsd-2091c1cbd81c9eb0437f36d35cf798b135db1069.tar.xz wireguard-openbsd-2091c1cbd81c9eb0437f36d35cf798b135db1069.zip |
Unsetting Initialized during syslogd die() is a relic from the time
when we had real signal handlers. But now we use libevent, so
remove the old logic.
OK deraadt@ millert@
Diffstat (limited to 'usr.sbin/syslogd')
-rw-r--r-- | usr.sbin/syslogd/syslogd.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/usr.sbin/syslogd/syslogd.c b/usr.sbin/syslogd/syslogd.c index da02de04b21..15e1e0fb867 100644 --- a/usr.sbin/syslogd/syslogd.c +++ b/usr.sbin/syslogd/syslogd.c @@ -1,4 +1,4 @@ -/* $OpenBSD: syslogd.c,v 1.255 2018/07/17 13:51:47 djm Exp $ */ +/* $OpenBSD: syslogd.c,v 1.256 2018/08/31 19:06:08 bluhm Exp $ */ /* * Copyright (c) 2014-2017 Alexander Bluhm <bluhm@genua.de> @@ -2277,9 +2277,7 @@ __dead void die(int signo) { struct filed *f; - int was_initialized = Initialized; - Initialized = 0; /* Don't log SIGCHLDs */ SIMPLEQ_FOREACH(f, &Files, f_next) { /* flush any pending output */ if (f->f_prevcount) @@ -2294,7 +2292,6 @@ die(int signo) f->f_dropped = 0; } } - Initialized = was_initialized; dropped_warn(&init_dropped, "during initialization"); dropped_warn(&file_dropped, "to file"); dropped_warn(&tcpbuf_dropped, "to remote loghost"); |