diff --git a/src/PVE/API2/Storage/Status.pm b/src/PVE/API2/Storage/Status.pm index 8e17156..31bcc6d 100644 --- a/src/PVE/API2/Storage/Status.pm +++ b/src/PVE/API2/Storage/Status.pm @@ -977,8 +977,8 @@ __PACKAGE__->register_method({ local $SIG{INT} = sub { unlink "$path/$tmp_filename" - or warn "could not cleanup temporary file: $!" - if -e "$path/$tmp_filename"; + or $!{ENOENT} + or warn "could not cleanup temporary file: $!"; die "got interrupted by signal\n"; };