2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-03-10 03:06:37 +00:00

fhem.pl: set attr global verbose 5 on SIGUSR1 (Forum #111898)

git-svn-id: https://svn.fhem.de/fhem/trunk@22134 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
rudolfkoenig 2020-06-08 08:26:05 +00:00
parent 6677557157
commit d7323fe90b

View File

@ -709,6 +709,7 @@ while (1) {
if($gotSig) {
CommandShutdown(undef, undef) if($gotSig eq "TERM");
CommandRereadCfg(undef, "") if($gotSig eq "HUP");
$attr{global}{verbose} = 5 if($gotSig eq "USR1");
$gotSig = undef;
}
@ -3441,6 +3442,7 @@ SignalHandling()
{
if($^O ne "MSWin32") {
$SIG{TERM} = sub { $gotSig = "TERM"; };
$SIG{USR1} = sub { $gotSig = "USR1"; };
$SIG{PIPE} = 'IGNORE';
$SIG{CHLD} = 'IGNORE';
$SIG{HUP} = sub { $gotSig = "HUP"; };