Help for this page

Select Code to Download


  1. or download this
    # $SIG{'INT'} = sub { kill 'TERM', -$$ };  # this works already
    $SIG{'TERM'} = sub { MCE->exit(0) };       # Notifies the parent
    
  2. or download this
    $SIG{'TERM'} = sub {
        if (MCE->wid > 0) {
    ...
        }
    };