summaryrefslogtreecommitdiffstats
path: root/perl-install
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mandriva.org>2009-03-04 11:29:33 +0000
committerThierry Vignaud <tv@mandriva.org>2009-03-04 11:29:33 +0000
commit6db0ccc0b1e65f82f266981290d18e1fa719bcf1 (patch)
treebaa60b9f7cbc6def9009b1edbe1871ae6764342e /perl-install
parent3eafb161b1174108c02b94dbfa49e1c647b777bc (diff)
downloaddrakx-6db0ccc0b1e65f82f266981290d18e1fa719bcf1.tar
drakx-6db0ccc0b1e65f82f266981290d18e1fa719bcf1.tar.gz
drakx-6db0ccc0b1e65f82f266981290d18e1fa719bcf1.tar.bz2
drakx-6db0ccc0b1e65f82f266981290d18e1fa719bcf1.tar.xz
drakx-6db0ccc0b1e65f82f266981290d18e1fa719bcf1.zip
(_install_raw) do not pass log file fd to urpm::install since it leaks a duplicated fd per transaction
Diffstat (limited to 'perl-install')
-rw-r--r--perl-install/install/pkgs.pm3
1 files changed, 2 insertions, 1 deletions
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;