FU: Log unclean worker shutdowns in supervisor

This is mainly to monitor kills from OOM or other situations that the
worker process itself is unable to log properly.
This commit is contained in:
Yorhel 2026-01-04 10:46:46 +01:00
parent 8140fefbca
commit d300f4d791

2
FU.pm
View file

@ -491,6 +491,8 @@ sub _supervisor($c) {
if (!$err && (!$childs{$pid} || $childs{$pid} != 2)) {
$err = 1;
log_write "Script exited before calling FU::run()\n";
} elsif ($?) {
log_write "Unclean shutdown of worker PID $pid status $?\n";
}
delete $childs{$pid};
}