Help for this page

Select Code to Download


  1. or download this
    # We are in the only process.
    printf STDERR ("pid = %d\n", $$) if $DEBUG;
    ...
    
    # We are in the parent.
    printf STDERR ("parent (pid = %d) successfully spawned child (pid = %d
    +).\n", $$, $pid) if $DEBUG;
    
  2. or download this
    use Win32;
    use Win32::Process;
    ...
    ...
    
    $process_obj->kill(255);