reaper(3) - Linux man page

Name

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

Synopsis

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...
}

Description

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.

Author

Jeremy Slade <jeremy@jkslade.net>

See Also

Reaper

Pod Errors

Hey! The above document had some coding errors, which are explained below:

Around line 53:
=back without =over