From owner-freebsd-bugs@freebsd.org Fri May 29 15:18:32 2020 Return-Path: Delivered-To: freebsd-bugs@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 7DB1833B5FE for ; Fri, 29 May 2020 15:18:32 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mailman.nyi.freebsd.org (unknown [127.0.1.3]) by mx1.freebsd.org (Postfix) with ESMTP id 49YSrS2rTHz3dct for ; Fri, 29 May 2020 15:18:32 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.nyi.freebsd.org (Postfix) id 5F78E33B355; Fri, 29 May 2020 15:18:32 +0000 (UTC) Delivered-To: bugs@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 5F41B33B2D8 for ; Fri, 29 May 2020 15:18:32 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 49YSrS1xkPz3dX2 for ; Fri, 29 May 2020 15:18:32 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 3E4A319D04 for ; Fri, 29 May 2020 15:18:32 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 04TFIWu5031773 for ; Fri, 29 May 2020 15:18:32 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 04TFIWPs031765 for bugs@FreeBSD.org; Fri, 29 May 2020 15:18:32 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 246845] LOG_PID is now default but cannot be disabled Date: Fri, 29 May 2020 15:18:29 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: bin X-Bugzilla-Version: 12.1-RELEASE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Many People X-Bugzilla-Who: des.gaufres@gmail.com X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter attachments.created Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.33 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 29 May 2020 15:18:32 -0000 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.=