diff --git a/contrib/test/modemu.pl b/contrib/test/modemu.pl index 4b8822181b..ed9fea03d9 100755 --- a/contrib/test/modemu.pl +++ b/contrib/test/modemu.pl @@ -136,6 +136,7 @@ sub cleanup # Ensure we clean up before and after. END { cleanup }; $SIG{INT} = sub { cleanup; die }; +$SIG{TERM} = sub { cleanup; die }; cleanup; my $pty = new IO::Pty;