Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 29 May 2020 15:18:29 +0000
From:      bugzilla-noreply@freebsd.org
To:        bugs@FreeBSD.org
Subject:   [Bug 246845] LOG_PID is now default but cannot be disabled
Message-ID:  <bug-246845-227@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D246845

            Bug ID: 246845
           Summary: LOG_PID is now default but cannot be disabled
           Product: Base System
           Version: 12.1-RELEASE
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Many People
          Priority: ---
         Component: bin
          Assignee: bugs@FreeBSD.org
          Reporter: des.gaufres@gmail.com

Created attachment 215026
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D215026&action=
=3Dedit
enable LOG_PID by default but allow LOG_PID to be disabled.

The change in r332100 means that LOG_PID is permanent.

The reason for the change is fair -- to have LOG_PID enabled by default.

But the change was written so that LOG_PID can never be disabled.

This is a problem for logger(1).

We use logger(1) extensively in many of our shell scripts. The syslog
messages that logger(1) produces are further parsed by other scripts.
Adding a PID to logger(1) entries means we will have to review all
our scripts to make sure the new PID does not break the parsing.
And arguably, a default PID for logger(1) is of limited value since
the PID is just for the logger(1) process itself.

We were in the process of slowly upgrading our systems to FreeBSD-12
when it was noted that new logger(1) messages included a PID by default.

We will now have to suspend the upgrade of some of our main systems
since they depend on shell scripts which make use of logger(1).

We would much prefer to have the expected logger(1) behaviour restored=20
rather than to have to review/adjust all our scripts + parsers.



Included is a patch for 2 files which would:

  + enable LOG_PID by default in syslog(3), but allow LOG_PID to be disable=
d.

  + adjust logger(1) so that it disables LOG_PID by default.

--=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-246845-227>