1Signal::Pending(3) User Contributed Perl Documentation Signal::Pending(3)
2
3
4
6 Signal::Pending - Signal pending status made easy
7
9 version 0.008
10
12 use Signal::Mask;
13 use Signal::Pending;
14
15 {
16 local $Signal::Mask{INT} = 1;
17 do {
18 something();
19 } while (not $Signal::Pending{INT})
20 }
21 #signal delivery gets postponed until now
22
24 Signal::Pending is an abstraction around your process'/thread's pending
25 signals. It can be used in combination with signal masks to handle
26 signals in a controlled manner. The set of pending signals is available
27 as the global hash %Signal::Pending.
28
30 Leon Timmermans <fawaka@gmail.com>
31
33 This software is copyright (c) 2010 by Leon Timmermans.
34
35 This is free software; you can redistribute it and/or modify it under
36 the same terms as the Perl 5 programming language system itself.
37
38
39
40perl v5.38.0 2023-07-21 Signal::Pending(3)