diff options
author | Alexander Bluhm <bluhm@cvs.openbsd.org> | 2015-12-16 13:38:40 +0000 |
---|---|---|
committer | Alexander Bluhm <bluhm@cvs.openbsd.org> | 2015-12-16 13:38:40 +0000 |
commit | a871aacd4cf995adfc8682ff476665f1ed5a83b1 (patch) | |
tree | 8e033fbc4e520093e8da1bba0837cb3e717347ad /usr.sbin | |
parent | 558ca3e910656d50a969306c926f9dffb35c96cd (diff) |
Adding mark messages to log files was broken since OpenBSD 5.7.
The mark timeout event is not persistent, add the timer intervall
everytime it fires.
Bug report, analysis and fix from Einfach Jemand rru.142 at gmail.com
Diffstat (limited to 'usr.sbin')
-rw-r--r-- | usr.sbin/syslogd/syslogd.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/usr.sbin/syslogd/syslogd.c b/usr.sbin/syslogd/syslogd.c index e9fc07e60ce..cf48af785de 100644 --- a/usr.sbin/syslogd/syslogd.c +++ b/usr.sbin/syslogd/syslogd.c @@ -1,4 +1,4 @@ -/* $OpenBSD: syslogd.c,v 1.201 2015/10/24 12:49:37 bluhm Exp $ */ +/* $OpenBSD: syslogd.c,v 1.202 2015/12/16 13:38:39 bluhm Exp $ */ /* * Copyright (c) 1983, 1988, 1993, 1994 @@ -1995,7 +1995,14 @@ die_signalcb(int signum, short event, void *arg) void mark_timercb(int unused, short event, void *arg) { + struct event *ev = arg; + struct timeval to; + markit(); + + to.tv_sec = TIMERINTVL; + to.tv_usec = 0; + evtimer_add(ev, &to); } void |