When using alarm() one must reset the timer via alarm(0) or incur the wrath
of the spurious signal.
Conflicts:
Open-ILS/src/perlmods/lib/OpenILS/Application/Search/Biblio.pm
Signed-off-by: Mike Rylander <mrylander@gmail.com>
Signed-off-by: Jason Stephenson <jason@sigio.com>
eval {
local $SIG{ALRM} = sub {die};
- alarm(2); # we'll sleep for as much as 2s
+ alarm(10); # we'll sleep for as much as 10s
do {
die if $cache->get_cache($key . '_COMPLETE');
} while (sleep(0.05));
+ alarm(0);
};
+ alarm(0);
my $blob = $cache->get_cache($key) || {};