FAQ | This is a LIVE service | Changelog

Commit ef6e3f36 authored by Catherine Pitt's avatar Catherine Pitt
Browse files

Remove deprecated 'keys on scalar' usage

Can't say "keys $foo", must say "keys %{$foo}" to get the keys of a hash
pointed to by a hash reference $foo. This broke with the perl in focal.
parent c46ffcfa
......@@ -159,7 +159,7 @@ $controlq->enqueue(D_WRITER|M_STOP);
$SIG{TERM}='DEFAULT';
$SIG{INT}='DEFAULT';
$cron->join();
foreach my $wrthread (keys($writers)) { $writers->{$wrthread}->join();}
foreach my $wrthread (keys(%{$writers})) { $writers->{$wrthread}->join();}
exit;
# Handle SIGTERM: send stop messages to all threads and stop cleanly.
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment