Test2::Util::Sig(3)

πŸ“¦ version 1.302214, in opensuse-leap 16.0

πŸ’œ 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:

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

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