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:
parent
8140fefbca
commit
d300f4d791
1 changed files with 2 additions and 0 deletions
2
FU.pm
2
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};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue