FreeBSD Bugzilla – Attachment 239223 Details for
Bug 268666
syslog(3) prints parent's pid after fork()
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
proposed fix
syslog.c.diff (text/plain), 471 bytes, created by
Eugene Grosbein
on 2023-01-03 07:09:10 UTC
(
hide
)
Description:
proposed fix
Filename:
MIME Type:
Creator:
Eugene Grosbein
Created:
2023-01-03 07:09:10 UTC
Size:
471 bytes
patch
obsolete
>diff --git lib/libc/gen/syslog.c lib/libc/gen/syslog.c >index 2424cef78dd7..08bdfdbeb1e7 100644 >--- lib/libc/gen/syslog.c >+++ lib/libc/gen/syslog.c >@@ -218,7 +218,7 @@ vsyslog1(int pri, const char *fmt, va_list ap) > * specified, as it provides valuable information. Many > * applications tend not to use this, even though they should. > */ >- if (LogPid == -1) >+ if (LogTagLength <= 0) > LogPid = getpid(); > (void)fprintf(fp, "%d ", (int)LogPid); > /* Message ID. */
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 Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 268666
: 239223