Help for this page

Select Code to Download


  1. or download this
    #!/usr/bin/perl -w
    
    ...
    $SIG{INT} = \&my_sig_int_handler;
    print "process $$\n";
    while(1){}
    
  2. or download this
    #!/usr/bin/perl -w
    $process = shift;
    kill 'INT', $process;