summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRafael Garcia-Suarez <rgarciasuarez@mandriva.com>2006-08-14 08:59:05 +0000
committerRafael Garcia-Suarez <rgarciasuarez@mandriva.com>2006-08-14 08:59:05 +0000
commitcac1b5a8d43eb9a99e5202bab26d9e45d2ba9788 (patch)
tree50eeb85dfb813b3dff9cfa43b5ecfac19cbfca57
parent631d1555596c82094401ecef01985628dd477eb0 (diff)
downloadurpmi-cac1b5a8d43eb9a99e5202bab26d9e45d2ba9788.tar
urpmi-cac1b5a8d43eb9a99e5202bab26d9e45d2ba9788.tar.gz
urpmi-cac1b5a8d43eb9a99e5202bab26d9e45d2ba9788.tar.bz2
urpmi-cac1b5a8d43eb9a99e5202bab26d9e45d2ba9788.tar.xz
urpmi-cac1b5a8d43eb9a99e5202bab26d9e45d2ba9788.zip
Use exit() instead of POSIX::_exit() to return an exit code from urpmi. This
allows END blocks and destructors to be run, and thus fixes bug #24301. (This used to be useful when gurpmi was a hack in urpmi instead of a standalone application.)
-rwxr-xr-xurpmi3
1 files changed, 1 insertions, 2 deletions
diff --git a/urpmi b/urpmi
index 3b0b86bf..643b9cb6 100755
--- a/urpmi
+++ b/urpmi
@@ -854,5 +854,4 @@ if ($pid_err || $pid_out) {
close STDOUT;
}
-use POSIX ();
-POSIX::_exit($exit_code);
+exit($exit_code);