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:
@@ -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"));
|
||||
|
||||
Reference in New Issue
Block a user