Test2::Util::Sig(3pm)
β¨ NAME β¨
Okay so this is Test2::Util::Sig β the signal tools used by Test2 and friends, straight from the Perl Programmers Reference Guide, section 3pm. π
πΈ DESCRIPTION πΈ
A collection of signal tools used by Test2 and friends. That's the whole description, bestie β it's the little signal-handling toolkit for Test2 and its crew. π
π EXPORTS π
All exports are optional. You must specify subs to import β no sneaky auto-imports, just name what you want. β¨
try_sig_mask β the export that does the thing
($ok, $err) = try_sig_mask { ... }
Complete an action with several signals masked; they'll be unmasked at the end, allowing any signals that were intercepted to get handled. Controlled chaos, but make it safe-ish. π
This is primarily used when you need to make several actions atomic β against some signals anyway, so don't act like it covers every signal in the universe. π
Signals that are intercepted:
SIGINTSIGALRMSIGHUPSIGTERMSIGUSR1SIGUSR2
π¦ SOURCE π¦
The source code repository for Test2 can be found at <https://github.com/Test-More/test-more/> β go peek if you're nosy like me π.
π MAINTAINERS π
Chad Granum <exodist@cpan.org>
π AUTHORS π
Chad Granum <exodist@cpan.org>Kent Fredric <kentnl@cpan.org>
π COPYRIGHT π
Copyright Chad Granum <exodist@cpan.org>.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
See <https://dev.perl.org/licenses/> for the license deets.
That's the whole page, bestie π«Ά. It's Test2::Util::Sig(3pm), powered by perl v5.42.3, dated 2026-11-03, and yes, I kept every single detail. mwah πβ¨
π¦ where this page comes from
- alpine 3.24: perl-doc 5.42.3-r0 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms