From nobody Mon Feb 12 15:23:50 2024 X-Original-To: dev-commits-src-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4TYSsg149jz5B0sy; Mon, 12 Feb 2024 15:23:51 +0000 (UTC) (envelope-from git@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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4TYSsg0Ln5z416r; Mon, 12 Feb 2024 15:23:51 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1707751431; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=/X5teVZxf015ahKgK6fgB/U/uu7Z9a4GIJ2TEhAKZ+A=; b=HCHzANAHf9kXgKHpCTw3qMn/AwteJiPOq2uF1lgQYFimVSla2LdcTDSLaNL2CM2ZQR2ArX 4Aktlvf2rLEZEC6q9SNAqczuCxJtksojwmyLzbZYwrK1U0uWk+cAf8ZfgmycY46mtl1c7P rJgSVxJiU2wiMfMJZFWxWS4D3B+ldNgMNt0NBZLUEuhfbDyVkpMGagdiWIE/oOySsfnrtH hDVGyoEU4W71rl9yqL/wWFj0rDLm35JqzelU/e9T7r+TWfQVyw/hzSiS8vzskN/2cXY+CE XbhJEQHb5N0HGCMmeb4p+6Qs8jHwGT6iWEr1Eni3c/KavSNMfvBM4VoxIJu7Sg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1707751431; a=rsa-sha256; cv=none; b=oWI/gaORB4Pn9afpEuMF0s4z30xYNNPag8bZmdyab7aDNME50ecEovsD3+1Ow9Ty1TN/th fyiZD0vqTa6tBY/gx2ZU0L2xPWnMPKx95pgvf025zKUQ3yiEJE7eEqyxUZ38oWY5XL2Ah7 vwkCR5y3g3nwSpol2ZTJExgisSYm3bEC5zFfRE96QVrtNzsb47ho54jOQS+rM+rGdz6EPq xfgvjnP1pbkCvAwaDB4nwy0POsjql9jsxLeXm5dYkocSrpi/uvnsTkjrTEpvuKMhKc+ak2 Co0TUX1vpPwGaukTc9K+vQYmGnf0YRju6oPA4an3h87iNAEW7fjMekJ4zjtUzA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1707751431; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=/X5teVZxf015ahKgK6fgB/U/uu7Z9a4GIJ2TEhAKZ+A=; b=sHkORqkfkWdxVsqYmJbHL5sXVQVVOfP8C5673va4WQ1RhtIllJkZXNepvJNdaTUY5iy6f/ /PkFDhZfp3xCRUDdTKcEX7HoTaaM8tQH4Y4ZwOZBqSEFFBwx2GMktX11jOFGkxZzD3oS+O CaUYjnTNkqXLO15oG/2k/mM9TyZUTCxaQ1lPf/d/8fQcOxDqR1LvH0enNVE+djjynqS4F6 ucMtALrPEbIUrw9V2CWqIYredUqyn2TIOJZ/lsw3+gGvrVLwmM3/Rm/ZPlKkhezsr+F7N5 gNZQgUeQbfSSBuUhdgSY29O9b3I1tvCzE374ILXKSDjkXsZp2SXEhSxQZ7ei2w== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (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 4TYSsf6VRjzXY0; Mon, 12 Feb 2024 15:23:50 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 41CFNoi9075508; Mon, 12 Feb 2024 15:23:50 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 41CFNoFh075505; Mon, 12 Feb 2024 15:23:50 GMT (envelope-from git) Date: Mon, 12 Feb 2024 15:23:50 GMT Message-Id: <202402121523.41CFNoFh075505@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Wolfram Schneider Subject: git: 147ab264373a - stable/13 - do not expect mandoc(1) to terminate in finite time List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: wosch X-Git-Repository: src X-Git-Refname: refs/heads/stable/13 X-Git-Reftype: branch X-Git-Commit: 147ab264373a61eea9f6bd9ffd06b399a186f7ef Auto-Submitted: auto-generated The branch stable/13 has been updated by wosch: URL: https://cgit.FreeBSD.org/src/commit/?id=147ab264373a61eea9f6bd9ffd06b399a186f7ef commit 147ab264373a61eea9f6bd9ffd06b399a186f7ef Author: Wolfram Schneider AuthorDate: 2022-12-27 17:04:04 +0000 Commit: Wolfram Schneider CommitDate: 2024-02-12 15:22:55 +0000 do not expect mandoc(1) to terminate in finite time PR: 266868 (cherry picked from commit 433c5a8ae42f0487cfe860af1d291ec3c7d009f7) --- usr.bin/man/man.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/usr.bin/man/man.sh b/usr.bin/man/man.sh index 114ea9d7a0b2..1d9eb423b707 100755 --- a/usr.bin/man/man.sh +++ b/usr.bin/man/man.sh @@ -27,6 +27,12 @@ # SUCH DAMAGE. # +# Rendering a manual page is fast. Even a manual page several 100k in size +# takes less than a CPU second. If it takes much longer, it is very likely +# that a tool like mandoc(1) is running in an infinite loop. In this case +# it is better to terminate it. +ulimit -t 20 + # Usage: add_to_manpath path # Adds a variable to manpath while ensuring we don't have duplicates. # Returns true if we were able to add something. False otherwise.