diff --git a/FU.pm b/FU.pm index 4b0dfed..2b9244e 100644 --- a/FU.pm +++ b/FU.pm @@ -503,6 +503,7 @@ sub _supervisor($c) { die $! if !defined $pid; if (!$pid) { # child $SIG{CHLD} = $SIG{HUP} = $SIG{INT} = $SIG{TERM} = undef; + $0 = sprintf '%s: starting', $procname if $procname; # In error state, wait with loading the script until we've received a request. # Otherwise we'll end up in an infinite spawning loop if the script doesn't start properly. $client = $c->{listen_sock}->accept() or die $! if !$client && $err;