From nobody Tue Dec 27 17:16:26 2022 X-Original-To: dev-commits-src-main@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 4NhLsk3nJ6z2kkYK; Tue, 27 Dec 2022 17:16:26 +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 4NhLsk1nv1z3rb2; Tue, 27 Dec 2022 17:16:26 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1672161386; 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=sWBp20E3H83DmDAuLk7ZCY6G+msMwOW4WBpJSnIolis=; b=EiKWrUZj1r7uChuoHwM7ax+9KiEUHt18ra7w6cJW5DYtIY2d8jezz9vZdEobwIctVvgpal xFU4qlUIp5X8zCNCR6vICkRaUqLDD9fqqI8GcFY5JHiFp0ti4biIVB3hDHdkoh6jPbG6Sp uFGlp1Z61zqzyd+UJFDpdzABdEbr8VfiaGLTVoyz03BdoZuCSHmZMhQIHRjHU78GgwnZqB Sq8GEPDPa160pUcyivVm8NbX1VcOQiRADvmb1E6ztI+rDqZEpu7n7oODrl58TuNqcTLn3M jmIRmkR2YqjgeZXNapVCS8MKV/e0vi1SaysouXIk1FH3yiuaRxsIDVengavuOw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1672161386; 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=sWBp20E3H83DmDAuLk7ZCY6G+msMwOW4WBpJSnIolis=; b=d9/ahpFo+H86v1GMWVU/OZgV1XGbwlrWPQvUEwFC/fHfPYUSy2oR+d3siPPteKfodUZDfM 7Oji2OtHXoEiCNnM6Hm4vFp2Rxyoyxd5g1BS0dZlhhkzSxniMslpVn9pJiMKcgmuO5rBsp b80sEmWAyBAjt+bw79riCsl7R7WV46tDanHycj6uEXT3YPm3D2al0JtmInFQhA2o/lGNCG 2heecBU8g3+E8RRMDYQXpl94AmWGkjXm2RSuShe/lHmIGmWGkh83VxbYeKxuljVW2HVAw8 hyvWdPXk4eqMyNmo9Uge6ajWBKLRMP8QE5H7h4U2UHM3D/ocppLcJcqpIhIYIQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1672161386; a=rsa-sha256; cv=none; b=p/BzyP+FW6UBW2JzZv70xARepq8p2T6N2xXox/dT51bBL82Bxzxv8vw+4nC15TZdhXEFcD 2J/Dv+uY/iPPynKVggvGwO9c81kvzFpBnp7SuRA6h7ixkYSi0uIYWD6CN9rLVTrscCFQZM zbCbgD7UB63Z6Koyt+RkI/43OPk1d+4xaG314RtmHuiQPCGbHCDzSmN4eaPeo5h4G9J0Ou xpmmMbIvZkO0xsiEhGdoi5WDJkGpnetZ/I31eBhTpuMCQeSjnmnv+A4p7erRfhSVgYSfeL raR6NSLPzLSRCwDJqSmWd/8yJdGPfAm8NoQwnZ7as+jCI6n7Dq9XmLzq0KQpAg== 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 4NhLsk0vb2zJFZ; Tue, 27 Dec 2022 17:16:26 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 2BRHGQwp096955; Tue, 27 Dec 2022 17:16:26 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 2BRHGQkh096954; Tue, 27 Dec 2022 17:16:26 GMT (envelope-from git) Date: Tue, 27 Dec 2022 17:16:26 GMT Message-Id: <202212271716.2BRHGQkh096954@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Wolfram Schneider Subject: git: 433c5a8ae42f - main - do not expect mandoc(1) to terminate in finite time List-Id: Commit messages for the main branch of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-main@freebsd.org X-BeenThere: dev-commits-src-main@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/main X-Git-Reftype: branch X-Git-Commit: 433c5a8ae42f0487cfe860af1d291ec3c7d009f7 Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by wosch: URL: https://cgit.FreeBSD.org/src/commit/?id=433c5a8ae42f0487cfe860af1d291ec3c7d009f7 commit 433c5a8ae42f0487cfe860af1d291ec3c7d009f7 Author: Wolfram Schneider AuthorDate: 2022-12-27 17:04:04 +0000 Commit: Wolfram Schneider CommitDate: 2022-12-27 17:04:04 +0000 do not expect mandoc(1) to terminate in finite time PR: 266868 --- 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 2c2f1bf648de..3cb748c1ba8f 100755 --- a/usr.bin/man/man.sh +++ b/usr.bin/man/man.sh @@ -28,6 +28,12 @@ # # $FreeBSD$ +# 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.