FreeBSD Bugzilla – Attachment 195129 Details for
Bug 229775
syslog(3) includes process id in each message even if LOG_PID is not specified as 2nd argument of openlog(3)
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
Sample program to reproduce the problem
syslogtest.c (text/plain), 364 bytes, created by
Yasuhiro Kimura
on 2018-07-14 19:03:52 UTC
(
hide
)
Description:
Sample program to reproduce the problem
Filename:
MIME Type:
Creator:
Yasuhiro Kimura
Created:
2018-07-14 19:03:52 UTC
Size:
364 bytes
patch
obsolete
>#include <syslog.h> >#include <stdarg.h> >#include <libgen.h> > >int >main(int argc, char** argv) >{ > openlog(basename(argv[0]), 0, LOG_USER); > syslog(LOG_WARNING, "Warning message without process ID."); > closelog(); > openlog(basename(argv[0]), LOG_PID, LOG_USER); > syslog(LOG_WARNING, "Warning message with process ID."); > closelog(); > return 0; >}
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 229775
: 195129