sigset_new#

Create a POSIX::SigSet object, optionally pre-populated with the given signal numbers.

תקציר#

use POSIX qw(SIGINT SIGTERM);
my $set = POSIX::SigSet->new(SIGINT, SIGTERM);

מה מוחזר#

A blessed POSIX::SigSet reference, with sigemptyset applied first and then each argument added via sigaddset.

הבדלים מן ה-upstream#

Fully compatible with upstream POSIX.

ראו גם#

  • addset, delset, emptyset, fillset, ismember - mutate or query the set.

  • sigprocmask - install a SigSet as the process mask.