mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager
synced 2024-10-14 12:05:03 +00:00
contrib/modemu: also clean up on SIGTERM
This commit is contained in:
parent
986947dbf5
commit
b1f7f431e6
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue