From d300f4d791c80cdf091c1f9d2ddb50ed36a6c42a Mon Sep 17 00:00:00 2001 From: Yorhel Date: Sun, 4 Jan 2026 10:46:46 +0100 Subject: [PATCH] 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. --- FU.pm | 2 ++ 1 file changed, 2 insertions(+) diff --git a/FU.pm b/FU.pm index e4f4ac1..8e47c1d 100644 --- a/FU.pm +++ b/FU.pm @@ -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}; }