X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=scripts%2Ftask_server.pl;h=2fd93de0f88dc6d689cc9e07fb8554d39be36611;hb=c157c911ac9175e4838990d051c594dd5eec7e21;hp=47fe59510046fb8c81d41e31c378a7a08b7f111b;hpb=c1c40424f4321f9b0645aaa66f53d113a6fa0e62;p=kivitendo-erp.git diff --git a/scripts/task_server.pl b/scripts/task_server.pl index 47fe59510..2fd93de0f 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" };