From nobody Mon Aug 3 11:38:43 2026 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 4hDF776jllz6nCGK for ; Mon, 03 Aug 2026 11:38:43 +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 "YR1" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 4hDF774HNlz3Rxn for ; Mon, 03 Aug 2026 11:38:43 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1785757123; 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=QD1FtKcqX47X9kbueXja3WUgICr2o47ZGEY2BvLE+MY=; b=L5Ra/zyFvF8syWHNeXwDMZcP2FoTDAK6jdp1Spih8PXw5Eaenxli/Jl7QCOh5c7bA5TMEk 56uROcuG6g4wbI+1iEOUZbg8zZ0TxW5soZkAcuGc87IhnJdNl490Bed0Zd8BHofG/nezdd p3mw7y0JfhFGyxd15WGZzjJxDEd3Pb1oIPDZDwDVldVcru9mOveus3EYAqZTRPUI125lWw nte/EO1foNmxTpmr1BhVDb++XBpdeoDHFdcNXQUSWVmgRvK9Ntk5tjmpGLmY2fV3kW4sh8 NxOJKgiHg+64s1DXHCKiG1IXVZl8TWhdZPAbzvmuU0nTVWdWsS2gj/gvLXGzVA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1785757123; a=rsa-sha256; cv=none; b=ZMscA9Ju4SiqkHlFn9EkukNzZ9Wq41HHVJhnlWrU7ZfvJAYaBc9pt5OcixAwbrIGNMNHKc csvj7Jm4OaA/20O17PfG588qOVZjfGaw52eNeyuMLKGK/ICmPPozj80LFEsN60NrFLsgsA qfFOu4zOuWrYZ9eyj5ChuVZwcoCas3NWzYIAvCEiMcE6mlS9PLbG8gx1TFHuzRPC7caE9a 8vH+Mkgk6X1AjAQWvYhYPIKuMhCxpQVIPaRpfcnxBblAUKx0M3uwCAcrKk6S+XQ+QBYwB4 oPaqupQqcLVH6IBEJSPLe2NV1/VNH+ODBlkgbzXkdM8A3ZNc0+Rn0swhH6e2LQ== 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=1785757123; 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=QD1FtKcqX47X9kbueXja3WUgICr2o47ZGEY2BvLE+MY=; b=fSXg9FqfhEx3tDWJoD3naWqNl4ggNTF92lGJUZorpEV6GwzYnqAtyqcRhAshPvJ3l1ZdNX +74IBY1E54I5u5/0KooKUabuL2JoslSBR/HoN3JWRKBsn2GrnQ6WIbkcbYUlB2fryOfCgn 6sGICM8ZytcGBwPUrT/jcJgwZqh/1OsO67DaSFuctMwYJ7wLMKvvmd1IFpd3lgABx0u1c0 tayLMSVpRmhlo6BUrxIyOZsYggyNZyi8wk8je3DqPWz04U3c1cHR5WwGvDPXM2pDtUQTNA 2KYkJxCgwI5csIXErb0e66qwON/491zBYxsuX6OF/2pvNyvyd3D1oJHUqncDLQ== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) by mxrelay.nyi.freebsd.org (Postfix) with ESMTP id 4hDF772w8TzyfN for ; Mon, 03 Aug 2026 11:38:43 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id 1c1f5 by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Mon, 03 Aug 2026 11:38:43 +0000 To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Dag-Erling=?utf-8?Q? Sm=C3=B8rg?=rav Subject: git: c4700dbbf9b5 - stable/14 - pwait: Don't use init as a target 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: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: des X-Git-Repository: src X-Git-Refname: refs/heads/stable/14 X-Git-Reftype: branch X-Git-Commit: c4700dbbf9b56887208e2967eacdc98cba34aab2 Auto-Submitted: auto-generated Date: Mon, 03 Aug 2026 11:38:43 +0000 Message-Id: <6a707dc3.1c1f5.2f200a1@gitrepo.freebsd.org> The branch stable/14 has been updated by des: URL: https://cgit.FreeBSD.org/src/commit/?id=c4700dbbf9b56887208e2967eacdc98cba34aab2 commit c4700dbbf9b56887208e2967eacdc98cba34aab2 Author: Dag-Erling Smørgrav AuthorDate: 2026-07-25 12:44:35 +0000 Commit: Dag-Erling Smørgrav CommitDate: 2026-08-03 11:32:13 +0000 pwait: Don't use init as a target The time_unit test case uses PID 1 as a target for pwait. This doesn't work in a jail. Since all we need is a process that we know won't die while the test is running, we may as well use ourselves. MFC after: 1 week Sponsored by: Klara, Inc. Sponsored by: NetApp, Inc. Reviewed by: ngie Differential Revision: https://reviews.freebsd.org/D58418 (cherry picked from commit 5922e9d7e72bfa8a85b0f37bcfd1a8b5d866ec3b) --- bin/pwait/tests/pwait_test.sh | 32 +++++++++++++++----------------- 1 file changed, 15 insertions(+), 17 deletions(-) diff --git a/bin/pwait/tests/pwait_test.sh b/bin/pwait/tests/pwait_test.sh index d31ca21cff93..0d4f53d2941d 100644 --- a/bin/pwait/tests/pwait_test.sh +++ b/bin/pwait/tests/pwait_test.sh @@ -56,31 +56,29 @@ time_unit_head() time_unit_body() { - init=1 - atf_check \ -o empty \ -e inline:"pwait: timeout unit\n" \ -s exit:65 \ - timeout --preserve-status 2 pwait -t 1d $init + timeout --preserve-status 2 pwait -t 1d $$ atf_check \ -o empty \ -e inline:"pwait: timeout unit\n" \ -s exit:65 \ - timeout --preserve-status 2 pwait -t 1d $init + timeout --preserve-status 2 pwait -t 1d $$ atf_check \ -o empty \ -e inline:"pwait: timeout value\n" \ -s exit:65 \ - timeout --preserve-status 2 pwait -t -1 $init + timeout --preserve-status 2 pwait -t -1 $$ atf_check \ -o empty \ -e inline:"pwait: timeout value\n" \ -s exit:65 \ - timeout --preserve-status 2 pwait -t 100000001 $init + timeout --preserve-status 2 pwait -t 100000001 $$ # These long duration cases are expected to timeout from the # timeout utility rather than pwait -t. @@ -88,37 +86,37 @@ time_unit_body() -o empty \ -e empty \ -s signal:15 \ - timeout --preserve-status 2 pwait -t 100000000 $init + timeout --preserve-status 2 pwait -t 100000000 $$ atf_check \ -o empty \ -e empty \ -s signal:15 \ - timeout --preserve-status 2 pwait -t 1h $init + timeout --preserve-status 2 pwait -t 1h $$ atf_check \ -o empty \ -e empty \ -s signal:15 \ - timeout --preserve-status 2 pwait -t 1.5h $init + timeout --preserve-status 2 pwait -t 1.5h $$ atf_check \ -o empty \ -e empty \ -s signal:15 \ - timeout --preserve-status 2 pwait -t 1m $init + timeout --preserve-status 2 pwait -t 1m $$ atf_check \ -o empty \ -e empty \ -s signal:15 \ - timeout --preserve-status 2 pwait -t 1.5m $init + timeout --preserve-status 2 pwait -t 1.5m $$ atf_check \ -o empty \ -e empty \ -s signal:15 \ - timeout --preserve-status 2 pwait -t 0 $init + timeout --preserve-status 2 pwait -t 0 $$ # The rest are fast enough that pwait -t is expected to trigger # the timeout. @@ -126,31 +124,31 @@ time_unit_body() -o empty \ -e empty \ -s exit:124 \ - timeout --preserve-status 2 pwait -t 1s $init + timeout --preserve-status 2 pwait -t 1s $$ atf_check \ -o empty \ -e empty \ -s exit:124 \ - timeout --preserve-status 2 pwait -t 1.5s $init + timeout --preserve-status 2 pwait -t 1.5s $$ atf_check \ -o empty \ -e empty \ -s exit:124 \ - timeout --preserve-status 2 pwait -t 1 $init + timeout --preserve-status 2 pwait -t 1 $$ atf_check \ -o empty \ -e empty \ -s exit:124 \ - timeout --preserve-status 2 pwait -t 1.5 $init + timeout --preserve-status 2 pwait -t 1.5 $$ atf_check \ -o empty \ -e empty \ -s exit:124 \ - timeout --preserve-status 2 pwait -t 0.5 $init + timeout --preserve-status 2 pwait -t 0.5 $$ } atf_test_case timeout_trigger_timeout