Skip to content

Commit

Permalink
[backend] BSServer: log server processes that died by a signal
Browse files Browse the repository at this point in the history
  • Loading branch information
mlschroe committed May 23, 2024
1 parent 8da03a3 commit 1a2ae6b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/backend/BSServer.pm
Original file line number Diff line number Diff line change
Expand Up @@ -448,6 +448,7 @@ sub server {
last unless $pid > 0;
my $slot = delete $chld{$pid};
$slot = delete $chld2{$pid} unless defined $slot;
printf("Child %d died from signal %d\n", $pid, $? & 127) if $? & 127;
if (defined($slot)) {
if ($serverstatus_ok && defined(sysseek(STA, $slot * 256, Fcntl::SEEK_SET))) {
syswrite(STA, "\0" x 256, 256);
Expand Down

0 comments on commit 1a2ae6b

Please sign in to comment.