From 6db0ccc0b1e65f82f266981290d18e1fa719bcf1 Mon Sep 17 00:00:00 2001 From: Thierry Vignaud Date: Wed, 4 Mar 2009 11:29:33 +0000 Subject: (_install_raw) do not pass log file fd to urpm::install since it leaks a duplicated fd per transaction --- perl-install/install/pkgs.pm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'perl-install') diff --git a/perl-install/install/pkgs.pm b/perl-install/install/pkgs.pm index 897cd8fa1..15556e224 100644 --- a/perl-install/install/pkgs.pm +++ b/perl-install/install/pkgs.pm @@ -716,7 +716,8 @@ sub _install_raw { local $packages->{options}{noscripts} = $noscripts; $urpm::args::options{force_transactions} = 1; local $packages->{options}{ignoresize} = 1; - local $packages->{options}{script_fd} = fileno $LOG; + # leaks a fd per transaction: + #local $packages->{options}{script_fd} = fileno $LOG; local $packages->{options}{'priority-upgrade'}; # prevent priority upgrade # log $trans->add() faillure; FIXME: should we override *urpm::msg::sys_log? local $packages->{error} = \&log::l; -- cgit v1.2.1