Test2::Util::Sig(3p)

Test2::Util::Sig3p

Signal tools used by test2 and friends.

Overview

Collection of signal tools used by Test2 and friends.

Exports

All exports are optional. You must specify subs to import.

($ok, $err) = try_sig_mask { ... }

Complete an action with several signals masked, they will be unmasked at the end allowing any signals that were intercepted to get handled.

This is primarily used when you need to make several actions atomic (against some signals anyway).

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

Maintainers

Chad Granum <[email protected]>

Releases

3 releases since OpenBSD 7.9; the text changed 1 time.

  1. 7.9
  2. 8.0

Authors

Chad Granum <[email protected]>
Kent Fredric <[email protected]>

From man 8.0-current-20261101 in OpenBSD 8.0-current (2026-11-01). Parsed by carta from the page's man source.