summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLubomir Rintel <lkundrak@v3.sk>2019-09-10 14:33:38 +0200
committerLubomir Rintel <lkundrak@v3.sk>2019-09-10 14:33:38 +0200
commitb1f7f431e6987dd3d1b4d3c91f28de6315017dc2 (patch)
tree2b3b1df174a55177e4340248ca95ee5e8eed33d2
parent986947dbf574fad9312818865b7bcecafc4d1c40 (diff)
downloadNetworkManager-b1f7f431e6987dd3d1b4d3c91f28de6315017dc2.tar.gz
contrib/modemu: also clean up on SIGTERM
-rwxr-xr-xcontrib/test/modemu.pl1
1 files changed, 1 insertions, 0 deletions
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;