3
0
mirror of https://github.com/pragma-/pbot.git synced 2024-11-22 03:49:29 +01:00

applets/pbot-vm: vm-server: fix child signal handler

This commit is contained in:
Pragmatic Software 2023-01-24 12:34:03 -08:00
parent de7db72c04
commit 19d8170af3
2 changed files with 5 additions and 5 deletions

View File

@ -160,9 +160,6 @@ sub do_server() {
sub handle_client($client, $heartbeat) {
my ($timed_out, $killed) = (0, 0);
# we don't care about child exit status
local $SIG{CHLD} = 'IGNORE';
my $r = fork;
if (not defined $r) {
@ -241,6 +238,9 @@ sub handle_client($client, $heartbeat) {
}
sub main() {
# let OS clean-up child exits
$SIG{CHLD} = 'IGNORE';
tie my $heartbeat, 'IPC::Shareable', { key => 'heartbeat', create => 1, destroy => 1 };
tie my $running, 'IPC::Shareable', { key => 'running', create => 1, destroy => 1 };

View File

@ -25,8 +25,8 @@ use PBot::Imports;
# These are set by the /misc/update_version script
use constant {
BUILD_NAME => "PBot",
BUILD_REVISION => 4604,
BUILD_DATE => "2023-01-23",
BUILD_REVISION => 4605,
BUILD_DATE => "2023-01-24",
};
sub initialize {}