2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-01-31 18:59:33 +00:00

fhem.pl: do not write statefile on ^C (SIGINT)

git-svn-id: https://svn.fhem.de/fhem/trunk@7124 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
rudolfkoenig 2014-12-05 07:10:20 +00:00
parent 1bc9c69916
commit 9a3a7b97aa

View File

@ -2604,7 +2604,7 @@ sub
SignalHandling()
{
if($^O ne "MSWin32") {
$SIG{INT} = sub { $sig_term = 1; };
$SIG{INT} = sub { exit() };
$SIG{TERM} = sub { $sig_term = 1; };
$SIG{PIPE} = 'IGNORE';
$SIG{CHLD} = 'IGNORE';