Help for this page

Select Code to Download


  1. or download this
    if ( $child = fork ) {
         #Do Parent stuff here
    ...
         #  Every time we finish, child # 1 starts us again
         exit;
    }
    
  2. or download this
    if ( $child = fork ) {
         close PARENTWRITE;  # Not needed in parent
    ...
         #  Every time we finish, child # 1 starts us again
         exit;
    }