diff --git a/CHANGED b/CHANGED index 6edc16e8e..0234a7bd8 100644 --- a/CHANGED +++ b/CHANGED @@ -1,5 +1,6 @@ # Add changes at the top of the list. Keep it in ASCII, and 80-char wide. # Do not insert empty lines here, update check depends on it. + - change: backup is always started in the background (Forum #80237) - bugfix: 72_FB_CALLMONITOR: fix not working reverse-search-phonebook file import - change: 93_DbLog: V2.22.15, some Log verbose level adapted/added diff --git a/FHEM/98_backup.pm b/FHEM/98_backup.pm index a0ac7b6ce..e4a9c6133 100644 --- a/FHEM/98_backup.pm +++ b/FHEM/98_backup.pm @@ -197,7 +197,7 @@ createArchiv($$) } Log 2, "Backup with command: $cmd"; - if($cl && ref($cl) eq "HASH" && $cl->{TYPE} && $cl->{TYPE} eq "FHEMWEB") { + if(!$fhemForked) { use Blocking; our $BC_telnetDevice; BC_searchTelnet("backup"); diff --git a/fhem.pl b/fhem.pl index 8302e00bb..f8210362a 100755 --- a/fhem.pl +++ b/fhem.pl @@ -247,6 +247,7 @@ use vars qw(@authorize); # List of authorization devices use vars qw(@structChangeHist); # Contains the last 10 structural changes use vars qw($haveInet6); # Using INET6 use vars qw(%prioQueues); # +use vars qw($fhemForked); # 1 in a fhemFork()'ed process, else undef $selectTimestamp = gettimeofday(); $cvsid = '$Id$'; @@ -5006,6 +5007,7 @@ fhemFork() } } $SIG{CHLD} = 'DEFAULT'; # Forum #50898 + $fhemForked = 1; return 0; }