mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-05-04 22:19:38 +00:00
fhem.pl: set attr global verbose 5 on SIGUSR1 (Forum #111898)
git-svn-id: https://svn.fhem.de/fhem/trunk/fhem@22134 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
41fd5b09cb
commit
2fba05997f
2
fhem.pl
2
fhem.pl
@ -709,6 +709,7 @@ while (1) {
|
|||||||
if($gotSig) {
|
if($gotSig) {
|
||||||
CommandShutdown(undef, undef) if($gotSig eq "TERM");
|
CommandShutdown(undef, undef) if($gotSig eq "TERM");
|
||||||
CommandRereadCfg(undef, "") if($gotSig eq "HUP");
|
CommandRereadCfg(undef, "") if($gotSig eq "HUP");
|
||||||
|
$attr{global}{verbose} = 5 if($gotSig eq "USR1");
|
||||||
$gotSig = undef;
|
$gotSig = undef;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -3441,6 +3442,7 @@ SignalHandling()
|
|||||||
{
|
{
|
||||||
if($^O ne "MSWin32") {
|
if($^O ne "MSWin32") {
|
||||||
$SIG{TERM} = sub { $gotSig = "TERM"; };
|
$SIG{TERM} = sub { $gotSig = "TERM"; };
|
||||||
|
$SIG{USR1} = sub { $gotSig = "USR1"; };
|
||||||
$SIG{PIPE} = 'IGNORE';
|
$SIG{PIPE} = 'IGNORE';
|
||||||
$SIG{CHLD} = 'IGNORE';
|
$SIG{CHLD} = 'IGNORE';
|
||||||
$SIG{HUP} = sub { $gotSig = "HUP"; };
|
$SIG{HUP} = sub { $gotSig = "HUP"; };
|
||||||
|
Loading…
x
Reference in New Issue
Block a user