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