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
This commit is contained in:
rudolfkoenig
2016-05-18 06:42:04 +00:00
parent 1a92d5ec6c
commit b21baa151e

View File

@@ -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"));