1reaper(3)             User Contributed Perl Documentation            reaper(3)
2
3
4

NAME

6       reaper - support for reaping child processes via $SIG{CHLD}
7

SYNOPSIS

9         use reaper qw( reaper reapPid pidStatus );
10
11         my $pid = fork;
12         if ( $pid == 0 ) { # child
13           exec $some_command;
14         }
15         reapPid ( $pid );
16
17         ...
18
19         if ( defined(my $exit = pidStatus($pid)) ) {
20           # child exited, check the code...
21         }
22

DESCRIPTION

24       reaper is just a backwards-compatibility wrapper for Reaper -- turns
25       out that only 'pragmas' are supposed to be named in lower case, so I
26       renamed reaper to Reaper.  But existing code contains 'use reaper', so
27       this allows such code to work without changes.
28

AUTHOR

30       Jeremy Slade <jeremy@jkslade.net>
31

SEE ALSO

33       Reaper
34

POD ERRORS

36       Hey! The above document had some coding errors, which are explained
37       below:
38
39       Around line 53:
40           =back without =over
41
42
43
44perl v5.30.0                      2019-07-26                         reaper(3)
Impressum