Jeremy Slade > Reaper > Reaper

Download:
Reaper-1.00.tar.gz

Dependencies

Annotate this POD

CPAN RT

New  1
Open  1
View/Report Bugs
Module Version: 1.00   Source  

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

syntax highlighting: