diff options
| author | Konstantin Belousov <kib@FreeBSD.org> | 2026-04-13 23:42:51 +0000 |
|---|---|---|
| committer | Konstantin Belousov <kib@FreeBSD.org> | 2026-04-14 12:51:38 +0000 |
| commit | 934a35ac2bbbcf8cd65d8824fa824eb5c6170c88 (patch) | |
| tree | 74f07cbeec58fb9a788112af0af848771a706eaa | |
| parent | fa912e3b9b5c074793bb1899f8256ea4baf72631 (diff) | |
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
| -rw-r--r-- | lib/libthr/libthr.3 | 19 |
1 files changed, 19 insertions, 0 deletions
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 |
