Summary: | [PATCH] Calls to syslog() drop the first message sent after syslogd is restarted | ||||||||
---|---|---|---|---|---|---|---|---|---|
Product: | Base System | Reporter: | pjcreath+freebsd | ||||||
Component: | bin | Assignee: | Xin LI <delphij> | ||||||
Status: | Closed FIXED | ||||||||
Severity: | Affects Many People | CC: | delphij | ||||||
Priority: | --- | ||||||||
Version: | CURRENT | ||||||||
Hardware: | Any | ||||||||
OS: | Any | ||||||||
Attachments: |
|
Description
pjcreath+freebsd
2014-11-02 02:01:56 UTC
Created attachment 148912 [details]
test case
I just realized the patch didn't include the full path of syslog.c: lib/libc/gen/syslog.c CR submitted as https://reviews.freebsd.org/D1227 A commit references this bug: Author: delphij Date: Tue Nov 25 20:59:23 UTC 2014 New revision: 275071 URL: https://svnweb.freebsd.org/changeset/base/275071 Log: Reinstitate send() after syslogd restarts. In r228193 the test of CONNPRIV have been moved to before the _usleep and send in vsyslog(). When syslogd restarts, this would prevent the message being logged after the disconnect/connect dance for scenario #1. PR: 194751 Submitted by: Peter Creath <pjcreath+freebsd gmail com> Reviewed By: glebius MFC after: 2 weeks Differential Revision: https://reviews.freebsd.org/D1227 Changes: head/lib/libc/gen/syslog.c Committed (with some minor style changes), thanks! A commit references this bug: Author: delphij Date: Tue Dec 9 00:47:03 UTC 2014 New revision: 275626 URL: https://svnweb.freebsd.org/changeset/base/275626 Log: MFC r275071: Reinstitate send() after syslogd restarts. In r228193 the test of CONNPRIV have been moved to before the _usleep and send in vsyslog(). When syslogd restarts, this would prevent the message being logged after the disconnect/connect dance for scenario #1. PR: 194751 Submitted by: Peter Creath <pjcreath+freebsd gmail com> Reviewed By: glebius Changes: _U stable/10/ stable/10/lib/libc/gen/syslog.c A commit references this bug: Author: delphij Date: Tue Dec 9 00:47:47 UTC 2014 New revision: 275627 URL: https://svnweb.freebsd.org/changeset/base/275627 Log: MFC r275071: Reinstitate send() after syslogd restarts. In r228193 the test of CONNPRIV have been moved to before the _usleep and send in vsyslog(). When syslogd restarts, this would prevent the message being logged after the disconnect/connect dance for scenario #1. PR: 194751 Submitted by: Peter Creath <pjcreath+freebsd gmail com> Reviewed By: glebius Changes: _U stable/9/lib/libc/ stable/9/lib/libc/gen/syslog.c |