reaper - support for reaping child processes via $SIG{CHLD}
use reaper qw( reaper reapPid pidStatus ); my $pid = fork; if ( $pid == 0 ) { # child exec $some_command; } reapPid ( $pid ); ... if ( defined(my $exit = pidStatus($pid)) ) { # child exited, check the code... }
reaper is just a backwards-compatibility wrapper for Reaper -- turns out that only 'pragmas' are supposed to be named in lower case, so I renamed reaper to Reaper. But existing code contains 'use reaper', so this allows such code to work without changes.
Jeremy Slade <jeremy@jkslade.net>
Reaper
1 POD Error
The following errors were encountered while parsing the POD:
=back without =over
To install Reaper, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Reaper
CPAN shell
perl -MCPAN -e shell install Reaper
For more information on module installation, please visit the detailed CPAN module installation guide.