X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/kivitendo-erp.git/blobdiff_plain/c1c40424f4321f9b0645aaa66f53d113a6fa0e62..d59576d22d6c7720c0078b3e17232c81bbaf9373:/scripts/task_server.pl diff --git a/scripts/task_server.pl b/scripts/task_server.pl index 47fe59510..c946371d0 100755 --- a/scripts/task_server.pl +++ b/scripts/task_server.pl @@ -274,6 +274,8 @@ sub run_once_for_all_clients { sub gd_run { while (1) { + $SIG{'ALRM'} = 'IGNORE'; + run_once_for_all_clients(); debug("Sleeping"); @@ -282,7 +284,8 @@ sub gd_run { my $seconds = 60 - (localtime)[0]; if (!eval { - local $SIG{'ALRM'} = sub { + $SIG{'ALRM'} = sub { + $SIG{'ALRM'} = 'IGNORE'; debug("Got woken up by SIGALRM"); die "Alarm!\n" }; @@ -294,17 +297,6 @@ sub gd_run { } } -sub end_of_request { - $main::lxdebug->show_backtrace(); - die <