Test2::Util::Sig(3)
π Test2::Util::Sig β ok so this is the Test2::Util::Sig(3) page, bestie
Like, welcome to the perl manpage for Test2::Util::Sig, no cap. It's giving "small but mighty" and honestly? We love her.
β¨ NAME β¨
Test2::Util::Sig β the signal tools that Test2 and all its little friends use. π
πΈ DESCRIPTION πΈ
It's a collection. Of signal tools. Used by Test2 and friends. That's literally the whole vibe check β a grab-bag of signal-handling utilities that Test2 (and the stuff that hangs out with Test2) reaches for. π¦
π EXPORTS π
Here's the thing, okay? All exports are optional. You don't just get them handed to you β you have to specify subs to import. So say what you want, periodt. π
π«Ά ($ok, $err) = try_sig_mask { ... }
This one's the main character. β¨ You hand it a block, and it completes that action with several signals masked. Then, at the end, they all get unmasked β which lets any signals that got intercepted actually get handled. π
What's it for? Lowkey the classic use case: when you need a bunch of actions to be atomic (against some signals anyway β keeping it real, it says "some"). π₯
The signals that get intercepted:
SIGINTSIGALRMSIGHUPSIGTERMSIGUSR1SIGUSR2
That's the whole list, bestie β all six, exactly like that. π
π§ SOURCE π§
Wanna go look at the actual code? The source repo for Test2 lives right here:
https://github.com/Test-More/test-more/
Go be nosy, it's fine. π
π 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/
fr fr, that's the whole page. Legal bits are legal bits β don't come for me, come for the license. π
π that's a wrap, bestie π β this was perl v5.42.0, dated 2025-07-28, and it slayed. πβ¨
π¦ where this page comes from
- opensuse-leap 16.0: perl-Test-Simple 1.302214-bp160.1.2 Β· Artistic-1.0 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