From cac1b5a8d43eb9a99e5202bab26d9e45d2ba9788 Mon Sep 17 00:00:00 2001 From: Rafael Garcia-Suarez Date: Mon, 14 Aug 2006 08:59:05 +0000 Subject: 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.) --- urpmi | 3 +-- 1 file changed, 1 insertion(+), 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); -- cgit v1.2.1