diff options
author | Marc Espie <espie@cvs.openbsd.org> | 2019-07-10 09:34:39 +0000 |
---|---|---|
committer | Marc Espie <espie@cvs.openbsd.org> | 2019-07-10 09:34:39 +0000 |
commit | 930d2f8e3e6e6109e5c3d3d7c9b7ec209f5a1f8d (patch) | |
tree | aabbf344dea66c5d005e0f8a5a400f2be05431aa /usr.sbin/pkg_add | |
parent | 0469ecfbfbd0aad581ba39c819af329f174c9e47 (diff) |
make the END{} block transparent for exit
Diffstat (limited to 'usr.sbin/pkg_add')
-rw-r--r-- | usr.sbin/pkg_add/OpenBSD/PackageRepository.pm | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/usr.sbin/pkg_add/OpenBSD/PackageRepository.pm b/usr.sbin/pkg_add/OpenBSD/PackageRepository.pm index 1b8f7905821..e19d2eceaa9 100644 --- a/usr.sbin/pkg_add/OpenBSD/PackageRepository.pm +++ b/usr.sbin/pkg_add/OpenBSD/PackageRepository.pm @@ -1,5 +1,5 @@ # ex:ts=8 sw=4: -# $OpenBSD: PackageRepository.pm,v 1.163 2019/07/08 11:50:01 espie Exp $ +# $OpenBSD: PackageRepository.pm,v 1.164 2019/07/10 09:34:38 espie Exp $ # # Copyright (c) 2003-2010 Marc Espie <espie@openbsd.org> # @@ -88,7 +88,9 @@ my $cleanup = sub { } }; END { + my $a = $?; &$cleanup; + $? = $a; } OpenBSD::Handler->register($cleanup); |