diff --git a/cualsea-server/bin/cualsead b/cualsea-server/bin/cualsead index 56296e1..8a1450d 100755 --- a/cualsea-server/bin/cualsead +++ b/cualsea-server/bin/cualsead @@ -16,6 +16,7 @@ use Cualsea::Server::MonitorController; my $pid = fork; if ($pid) {{ local $SIG{INT} = \&finish_parent; + local $SIG{TERM} = \&finish_parent; while (1) { my $loop = Cualsea::Server::Loop->new; try { @@ -33,7 +34,7 @@ while (1) { } sub finish_parent { - kill 'INT', $pid; + kill 'KILL', $pid; 1 while waitpid $pid, WNOHANG; exit; }