X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/kivitendo-erp.git/blobdiff_plain/076728675218b25f451543caa69346d79809eb2e..d59576d22d6c7720c0078b3e17232c81bbaf9373:/scripts/task_server.pl diff --git a/scripts/task_server.pl b/scripts/task_server.pl index 1de0a6761..c946371d0 100755 --- a/scripts/task_server.pl +++ b/scripts/task_server.pl @@ -111,6 +111,8 @@ sub clean_before_sleeping { Form::disconnect_standard_dbh; SL::DBConnect::Cache->disconnect_all_and_clear; SL::DB->db_cache->clear; + + File::Temp::cleanup(); } sub drop_privileges { @@ -272,6 +274,8 @@ sub run_once_for_all_clients { sub gd_run { while (1) { + $SIG{'ALRM'} = 'IGNORE'; + run_once_for_all_clients(); debug("Sleeping"); @@ -280,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" }; @@ -292,17 +297,6 @@ sub gd_run { } } -sub end_of_request { - $main::lxdebug->show_backtrace(); - die <