From b21baa151e258840eb606cea1d4338ecc8388303 Mon Sep 17 00:00:00 2001 From: rudolfkoenig Date: Wed, 18 May 2016 06:42:04 +0000 Subject: [PATCH] fhem.pl: Do SignalHandling earlier to avoid zombies (Forum #53356) git-svn-id: https://svn.fhem.de/fhem/trunk@11476 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- fhem/fhem.pl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fhem/fhem.pl b/fhem/fhem.pl index 2cc201b6b..a75f49427 100755 --- a/fhem/fhem.pl +++ b/fhem/fhem.pl @@ -445,6 +445,8 @@ if(int(@ARGV) > 1 && $ARGV[$#ARGV] ne "-i") { ################################################### +SignalHandling(); + ################################################### # Windows Service Support: install/remove or start the fhem service if($^O =~ m/Win/) { @@ -524,8 +526,6 @@ if($cfgRet) { } -SignalHandling(); - my $pfn = $attr{global}{pidfilename}; if($pfn) { die "$pfn: $!\n" if(!open(PID, ">$pfn"));