Help for this page

Select Code to Download


  1. or download this
    $SIG{HUP} = \&reload;
    $SIG{TERM} = \&terminate;
    
    ...
    sub terminate {
      # terminate database connection, etc...
    }
    
  2. or download this
    use POSIX qw(:signal_h);
    
    # do something
    ...
    # </criticalSection>
    
    # do other stuff here