Commit b1f7f431 authored by Lubomir Rintel's avatar Lubomir Rintel 🥕

contrib/modemu: also clean up on SIGTERM

parent 986947db
......@@ -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;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment