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:

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

πŸ¦‹ 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 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