From nobody Tue Apr 14 12:51:58 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 4fw40v2g0Rz6YWmJ for ; Tue, 14 Apr 2026 12:51:59 +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 "R12" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 4fw40t6KLNz3rG4 for ; Tue, 14 Apr 2026 12:51:58 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1776171118; 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=aG3SY/B07qEsTR6uUrHlXh/eA2Nzg2b3MD4A2qH27gM=; b=dkgTcwAMpLlcA0k9Hp1NhufVhPxu92WBq8m96ggIGe8W20wD+VJqXkf33fAcMT1wUglbsi q4uFqUIK8ow7ZxoXSeZCJ0nuZ3/lfLLMgwFljjn8f+z4JowtPuj13RBtwGMU/5OOXFHVNR A0Yv4x6ZaVkB53NZToU2DlBEPkmoGFDbTVDffcOf3SGWHiUSqB/JknbB5E5jzhXOZp/bvI aK3PABCSDzH+NhziGO5klgPg8tq9SVkihjRKN5tQtpmykDj6XExLVKR02PbU+RMSD5Ycxc XhgnRSNIaEnBo2cJTJTqeep1tmJZFnrOt67RB+mLuYhy0QXdMwVQmS9qrwobsA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1776171118; a=rsa-sha256; cv=none; b=sCOIfuXFHMJOxdkja/4ipShoMWiYwFKrI1+aoEOleH/HrfKHWt1LuTfxqUqI9T9tolaP6T I57lsBY1oPeDqVJsluPGC3ngBvn7od4UmfasZkI/7nNsZgglQMyXdC7bm6Yriq0kLb3Beu eTvHRBjSJ7lOT3mNUZzsU5piW3KbhJql7rVlse0Hd9k50OE5ZNmina1B4J56EHfjXeHJwR hxyXRydZqi83Lgwv9x+dF/yZiSAq9+BPjBhz2fIq5s5dgn5xC2sPi68n9PQB6UhFDB9sHW SC8Wu0T7sj1y4pexLaZH69DlfUtVi+vSK6ZScPwRylEtI1qnnTTUdTa5Dcdpcw== 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=1776171118; 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=aG3SY/B07qEsTR6uUrHlXh/eA2Nzg2b3MD4A2qH27gM=; b=nVkF2T1zw1EQVc7e50JqXG4hmjc01Pq8qCeZ67SSaE/OQ4/dGJONV+Ek9AoIp7B8cjf7pG XY269k2CTv5o3hy+1b+w42O9RoHTufic1LQcRoaY5A6ak439n6qKTGXWn0my9G09NGYCpd F10iLC5f7VnJDZ6d5l/o3V4ixTyKLpansv+iyCg18PFv3RC6FQibXfYSRPLabCtU07+Coj 3TGNWRAJ4X1RAyo/AJFePGUbfcUCUNxZlUoQt9bcCmefc7zOKkM4ooO8yJAmMhSybsh4o9 C1wZ9L8Rb3oX2KtrpwdDia292ng7N5CN6TtvorbbtuYMnYdcN0KA6ia690KuOg== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) by mxrelay.nyi.freebsd.org (Postfix) with ESMTP id 4fw40t4nwzzrVL for ; Tue, 14 Apr 2026 12:51:58 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id 3f4bb by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Tue, 14 Apr 2026 12:51:58 +0000 To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Konstantin Belousov Subject: git: 934a35ac2bbb - main - libthr.3: describe SIGTHR 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 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: kib X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 934a35ac2bbbcf8cd65d8824fa824eb5c6170c88 Auto-Submitted: auto-generated Date: Tue, 14 Apr 2026 12:51:58 +0000 Message-Id: <69de386e.3f4bb.66a5e2a1@gitrepo.freebsd.org> The branch main has been updated by kib: URL: https://cgit.FreeBSD.org/src/commit/?id=934a35ac2bbbcf8cd65d8824fa824eb5c6170c88 commit 934a35ac2bbbcf8cd65d8824fa824eb5c6170c88 Author: Konstantin Belousov AuthorDate: 2026-04-13 23:42:51 +0000 Commit: Konstantin Belousov CommitDate: 2026-04-14 12:51:38 +0000 libthr.3: describe SIGTHR Explain how SIGTHR is used and that it should be not touched by user code. Note about SIGLIBRT. Reviewed by: emaste Sponsored by: The FreeBSD Foundation MFC after: 3 days Differential revision: https://reviews.freebsd.org/D56384 --- lib/libthr/libthr.3 | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/lib/libthr/libthr.3 b/lib/libthr/libthr.3 index 8c7b84490547..5d9c5ec6706b 100644 --- a/lib/libthr/libthr.3 +++ b/lib/libthr/libthr.3 @@ -269,6 +269,25 @@ the critical section. This should be taken into account when interpreting .Xr ktrace 1 logs. +.Pp +The +.Nm +library uses the +.Va SIGTHR +signal for internal operations, in particular, +for cancellation requests. +This signal's masking and disposition is controlled by the library, +and user programs should not try to modify them. +The library interposes functions controlling signals to prevent +inadvertent modifications and to guard portable code against +exposure to +.Va SIGTHR . +.Pp +Note: similarly, the +.Va SIGLIBRT +signal is reserved for use by +.Lb librt , +and should be not modified by users. .Sh PROCESS-SHARED SYNCHRONIZATION OBJECTS In the .Li libthr