$SIG{INT}=\&ctrlc; $SIG{HUP}=\&ctrlc; $SIG{QUIT}=\&ctrlc; #Quit $SIG{TERM}=\&ctrlc; #Terminate $SIG{PIPE}='IGNORE'; sub ctrlc{exit;}