Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 10 May 2021 15:49:55 +0000
From:      bugzilla-noreply@freebsd.org
To:        doc@FreeBSD.org
Subject:   [Bug 255664] [patch] syslog.3 - add detail about LOG_PID
Message-ID:  <bug-255664-9-94DVVcAW7H@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-255664-9@https.bugs.freebsd.org/bugzilla/>

index | next in thread | previous in thread | raw e-mail

https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=255664

--- Comment #4 from P Kern <des.gaufres@gmail.com> ---
(In reply to Fernando ApesteguĂ­a from comment #3)

That's correct.  The relevant lines in syslog.c are ...

        /*
         * Provide the process ID regardless of whether LOG_PID has been
         * specified, as it provides valuable information. Many
         * applications tend not to use this, even though they should.
         */
        (void)fprintf(fp, "%d ", getpid());

...

Previous to this, LOG_PID was optional.

The man page only states that LOG_PID is now enabled by default for FreeBSD.

Since LOG_PID used to be optional, some (like me) might reasonably expect that
it would still be possible to disable LOG_PID.

The above patch is meant to adjust the syslog(3) man page to make it clear that
for FreeBSD, LOG_PID is now permanent, that it is no longer optional.

Does that help?

-- 
You are receiving this mail because:
You are on the CC list for the bug.

home | help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-255664-9-94DVVcAW7H>