1Thread::SigMask(3)    User Contributed Perl Documentation   Thread::SigMask(3)
2
3
4

NAME

6       Thread::SigMask - Thread specific signal masks
7

VERSION

9       version 0.004
10

SYNOPSIS

12        use Thread::SigMask qw/sigset/;
13        use POSIX qw/SIG_BLOCK SIG_UNBLOCK/;
14
15        sigmask(SIG_BLOCK, $sigset);
16        ...
17        sigmask(SIG_UNBLOCK, $sigset);
18

DESCRIPTION

20       This module provides per-thread signal masks. On non-threaded perls it
21       will be effectively the same as POSIX::sigprocmask. The interface works
22       exactly the same as sigprocmask.
23

FUNCTIONS

25   sigmask($how, $newset, $oldset = undef)
26       Change and/or examine calling process's signal mask. This uses
27       "POSIX::SigSet" objects for the newset and oldset arguments. The
28       behavior of the call is dependent on the value of how.
29
30       •   SIG_BLOCK
31
32           The set of blocked signals is the union of the current set and the
33           set argument.
34
35       •   SIG_UNBLOCK
36
37           The signals in set are removed from the current set of blocked
38           signals. It is permissible to attempt to unblock a signal which is
39           not blocked.
40
41       •   SIG_SETMASK
42
43           The set of blocked signals is set to the argument set.
44
45       If oldset is defined, the previous value of the signal mask is stored
46       in oldset. If newset is NULL, then the signal mask is unchanged (i.e.,
47       how is ignored), but the current value of the signal mask is
48       nevertheless returned in oldset (if it is not NULL).
49

SEE ALSO

51       Signal::Mask
52

ACKNOWLEDGEMENTS

54       Parts of this documentation is shamelessly stolen from POSIX and Linux'
55       sigprocmask(2).
56

AUTHOR

58       Leon Timmermans <leont@cpan.org>
59
61       This software is copyright (c) 2010 by Leon Timmermans.
62
63       This is free software; you can redistribute it and/or modify it under
64       the same terms as the Perl 5 programming language system itself.
65
66
67
68perl v5.32.1                      2021-01-27                Thread::SigMask(3)
Impressum