contrib/modemu: also clean up on SIGTERM

This commit is contained in:
Lubomir Rintel 2019-09-10 14:33:38 +02:00
parent 986947dbf5
commit b1f7f431e6

View file

@ -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;