mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-01-10 17:30:17 +01:00
contrib/modemu: also clean up on SIGTERM
This commit is contained in:
parent
986947dbf5
commit
b1f7f431e6
1 changed files with 1 additions and 0 deletions
|
|
@ -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…
Add table
Reference in a new issue