GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
reaper(3) User Contributed Perl Documentation reaper(3)

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

Hey! The above document had some coding errors, which are explained below:
Around line 53:
=back without =over
2006-06-07 perl v5.32.1

Search for    or go to Top of page |  Section 3 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.