TEST2::UTIL::SIG(3perl)

πŸ“¦
version 5.44.0 Β· 3 versions
, in arch rolling

✨ Test2::Util::Sig ✨ β€” the Test2::Util::Sig(3perl) page, but make it cute πŸ’…

okay bestie, gather round, because we're talking about signal tools and honestly? it's giving "small module, big slay". this is Test2::Util::Sig from the Perl Programmers Reference Guide, and it's the lil helper that Test2 and its whole friend group use when they need to be delicate with signals. πŸ¦‹


🌸 NAME 🌸

Test2::Util::Sig β€” signal tools used by Test2 and friends. πŸŽ€


🫢 DESCRIPTION 🫢

literally just a collection of signal tools used by Test2 and friends. that's the whole vibe. one module, does its lil signal thing, serves cunt, exits. πŸ‘‘


πŸ’– EXPORTS πŸ’–

so here's the tea: all exports are optional. you don't get anything for free, bestie β€” you must specify subs to import. no drive-by imports here, we're consensual about it. ✨

  • ($ok, $err) = try_sig_mask { ... } β€” run a whole action with several signals masked, and then at the end they get unmasked, which means any signals that got intercepted along the way finally get to be handled. πŸŽ€

🧚 try_sig_mask β€” the main character ✨

okay so the way this works: you wrap a block, you complete an action with several signals masked, and once it's done the mask comes off and any signals that were intercepted get handled like they were waiting in the group chat the whole time. 🫢

this is primarily used when you need to make several actions atomic β€” well, atomic against some signals anyway. not all of them, bestie, let's not lie. πŸ’…

πŸ’€ the signals that get intercepted

these are the ones catching feelings (and signals):

  • SIGINT
  • SIGALRM
  • SIGHUP
  • SIGTERM
  • SIGUSR1
  • SIGUSR2

that's the whole list. six signals. iconic. πŸ”₯


🌈 SOURCE 🌈

the source code repository for Test2 lives at <https://github.com/Test-More/test-more/>. go be nosy, you've earned it. πŸ¦‹


πŸ‘‘ MAINTAINERS πŸ‘‘

  • Chad Granum <exodist@cpan.org>

🌸 AUTHORS 🌸

  • Chad Granum <exodist@cpan.org>
  • Kent Fredric <kentnl@cpan.org>

two absolute legends fr fr πŸ’œ


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/>


no cap warning: this page is from the Perl Programmers Reference Guide, and it's Test2::Util::Sig(3perl) β€” don't go looking for it anywhere else, bestie, it lives right here. πŸ’…

and that's the whole page, pookie!! πŸ₯³ this was perl v5.44.0, dated 2026-10-17, and it's Test2::Util::Sig(3perl) β€” mwah, no notes, periodt. πŸ’–βœ¨πŸŽ€πŸ¦‹πŸŒΈ

πŸ“¦ where this page comes from
  • arch rolling: perl 5.44.0-1 Β· Artistic-1.0-Perl AND GPL-1.0-or-later
  • πŸ’– girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms