diff options
4 files changed, 32 insertions, 3 deletions
diff --git a/NEWS b/NEWS
index 8a18cdf..928ffb9 100644
--- a/NEWS
+++ b/NEWS
@@ -1,9 +1,9 @@
-Wydawca NEWS -- history of user-visible changes. 2020-04-29
+Wydawca NEWS -- history of user-visible changes. 2020-05-02
See the end of file for copying conditions.
Please send Wydawca bug reports to <bug-wydawca@gnu.org.ua>.
-Version 3.1.95 (git)
+Version 4.0, 2020-05-02
This is a complete rewrite of the wydawca code base. The operating
model changed from multi-process to multi-thread.
diff --git a/configure.ac b/configure.ac
index 2cffbed..93e5a49 100644
--- a/configure.ac
+++ b/configure.ac
@@ -15,7 +15,7 @@
# along with wydawca. If not, see <http://www.gnu.org/licenses/>.
-AC_INIT([wydawca], 3.1.95, [bug-wydawca@gnu.org.ua], [wydawca],
+AC_INIT([wydawca], 4.0, [bug-wydawca@gnu.org.ua], [wydawca],
diff --git a/doc/threads.texi b/doc/threads.texi
index 6dd2226..3219f2d 100644
--- a/doc/threads.texi
+++ b/doc/threads.texi
@@ -52,3 +52,29 @@ configuration file statement (@pxref{daemon, max-connections}).
Processes a triplet. A separate thread of this type is started by
@samp{WY_listener} for each valid triplet it detects.
@end table
+* Event timestamps in WY_stat::
+@end menu
+@node Event timestamps in WY_stat
+@unnumberedsec Event timestamps in WY_stat
+On GNU/Linux systems the events generated by the @samp{WY_stat} thread
+may appear to happen one second prior to their scheduled time. This
+happens if the software reporting the events uses @code{time}(2)
+instead of @code{gettimeofday}(2) for time reporting. The internal
+timekeeping mechanism of the linux kernel is designed so that the
+number of seconds returned by @code{time} may be one less than the
+@code{tv_sec} value after return from @code{gettimeofday}, if the two
+functions would be called the same instant@footnote{See
+for details}.
+The two known cases are the legacy @command{syslogd} used by default
+on Slackware systems, and the @command{Sendmail} MTA.
+Since the results returned by @code{gettimeofday} are more accurate,
+it was decided to leave this feature as it is, instead of installing
+workarounds of dubious nature just to satisfy older software.
diff --git a/doc/wydawca.texi b/doc/wydawca.texi
index 1f7ffba..ecd963f 100644
--- a/doc/wydawca.texi
+++ b/doc/wydawca.texi
@@ -2227,6 +2227,9 @@ stat-report-schedule "@@midnight";
@end example
@end deffn
+@xref{Event timestamps in WY_stat}, if statistic reports appear to be
+generated one second prior to their scheduled time.
Statistic report is suppressed if there were no uploads since the last

Return to:

Send suggestions and report system problems to the System administrator.