FreeBSD Bugzilla – Attachment 148912 Details for
Bug 194751
[PATCH] Calls to syslog() drop the first message sent after syslogd is restarted
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
test case
logtest.py (text/x-python-script), 456 bytes, created by
pjcreath+freebsd
on 2014-11-02 02:03:16 UTC
(
hide
)
Description:
test case
Filename:
MIME Type:
Creator:
pjcreath+freebsd
Created:
2014-11-02 02:03:16 UTC
Size:
456 bytes
patch
obsolete
>#!/usr/bin/env python > >import time >import syslog >import subprocess > >def main(): > syslog.openlog("TestDaemon", (syslog.LOG_PID | syslog.LOG_NOWAIT)) > i = 0 > while True: > syslog.syslog("This is test message %d" % i) > i += 1 > if (i == 3): > # this will make message 3 disappear > subprocess.check_call(["/usr/sbin/service", "syslogd", "restart"]) > time.sleep(10) > >if __name__ == "__main__": > main()
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 194751
:
148911
| 148912