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 5120453125
commit f3ae49f597

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';