1
0
mirror of synced 2026-02-04 23:14:47 +00:00

Trap SIGINT to unmount to temporary mount point

This makes END being called again after Ctrl-C.
This commit is contained in:
Axel Beckert
2013-01-17 21:05:46 +01:00
parent c1e7cb717a
commit 61df2a6c51

View File

@@ -779,6 +779,7 @@ The LICENSE file contains the full text of the license.
=cut
$SIG{INT} = \&clean_up;
use strict;
use English;
@@ -4088,6 +4089,13 @@ sub unMountImage
=cut
sub clean_up () {
if ( defined($MOUNT_POINT) )
{
unMountImage($MOUNT_POINT, 1);
}
}
sub END
{
exit 0 if $VERSION || $HELP || $MANUAL || $DUMPCONFIG;