Date: Sat, 14 Jul 2018 19:03:52 +0000 From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 229775] syslog(3) includes process id in each message even if LOG_PID is specified as 2nd argument of openlog(3) Message-ID: <bug-229775-227@https.bugs.freebsd.org/bugzilla/>
next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D229775 Bug ID: 229775 Summary: syslog(3) includes process id in each message even if LOG_PID is specified as 2nd argument of openlog(3) Product: Base System Version: CURRENT Hardware: Any OS: Any Status: New Severity: Affects Only Me Priority: --- Component: bin Assignee: bugs@FreeBSD.org Reporter: yasu@utahime.org Attachment #195129 text/plain mime type: Created attachment 195129 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D195129&action= =3Dedit Sample program to reproduce the problem On 12-CURRENT syslog(3) includes process id in each message even if LOG_PID= is specified as 2nd argument of openlog(3). Attached sample program reproduce = the problem. On 11.2-RELEASE compiled program writes following messages. Jul 15 03:45:35 eastasia syslogtest: Warning message without process ID. Jul 15 03:45:35 eastasia syslogtest[65208]: Warning message with process ID. At first LOG_PID is not specified as 2nd argument of openlog(3). So first message doesn't include process id. And next LOG_PID is specified as 2nd argument of openlog(3). So second message includes process id. On 12-CURRENT (base r336196), on the other hand, compiled program writes following messages. Jul 15 03:50:57 rolling-vm-freebsd2 syslogtest[99867]: Warning message with= out process ID. Jul 15 03:50:57 rolling-vm-freebsd2 syslogtest[99867]: Warning message with process ID. This time first message includes process id even if LOG_PID is not specifie= d as 2nd argument of openlog(3). --=20 You are receiving this mail because: You are the assignee for the bug.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-229775-227>