mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-03-10 03:06:37 +00:00
fhem.pl: set SIGCHLD to default after fork (Forum #50898)
git-svn-id: https://svn.fhem.de/fhem/trunk@11072 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
e01db84f15
commit
9f200fa8a1
@ -4470,9 +4470,7 @@ fhemFork()
|
||||
return $pid if($pid);
|
||||
|
||||
# Child here
|
||||
# Close all kind of FD. Reasons:
|
||||
# - cannot restart FHEM if child keeps TCP Serverports open
|
||||
# ...?
|
||||
# Close FDs as we cannot restart FHEM if child keeps TCP Serverports open
|
||||
foreach my $d (sort keys %defs) {
|
||||
my $h = $defs{$d};
|
||||
$h->{DBH}->{InactiveDestroy} = 1 if($h->{TYPE} eq 'DbLog');
|
||||
@ -4482,6 +4480,7 @@ fhemFork()
|
||||
DevIo_CloseDev($h,1);
|
||||
}
|
||||
}
|
||||
$SIG{CHLD} = 'DEFAULT'; # Forum #50898
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user