Help for this page

Select Code to Download


  1. or download this
    while (1) {
        $self->check_start();
    ...
        # Sleep 1/10 second
        select(undef, undef, undef, 0.1);
    }
    
  2. or download this
    $SIG{CHLD} = \&reaper;
    while (1) {
    ...
        } while ($pid > 0);
        $SIG{CHLD} = \&reaper;
    }