summaryrefslogtreecommitdiff
path: root/apt-pkg/deb/dpkgpm.cc
diff options
context:
space:
mode:
authorMichael Vogt <egon@bottom>2007-10-15 21:28:47 +0200
committerMichael Vogt <egon@bottom>2007-10-15 21:28:47 +0200
commit312764930ff995ea9e7239b170af387f10d16a11 (patch)
tree8a665fec46adfb0a85200e3cb34210d5a06e314d /apt-pkg/deb/dpkgpm.cc
parent6edbc051f4cc97ec24b0b95791aa3cdc2ade3aae (diff)
parent477b5d6cacb53e868ec182330ffdcc3678a98560 (diff)
* merge from apt--mvo (fix resource leak, run apt.cron.daily only if
apt-get check is successfull)
Diffstat (limited to 'apt-pkg/deb/dpkgpm.cc')
-rw-r--r--apt-pkg/deb/dpkgpm.cc5
1 files changed, 4 insertions, 1 deletions
diff --git a/apt-pkg/deb/dpkgpm.cc b/apt-pkg/deb/dpkgpm.cc
index 4323b5fd2..706abcb92 100644
--- a/apt-pkg/deb/dpkgpm.cc
+++ b/apt-pkg/deb/dpkgpm.cc
@@ -864,8 +864,11 @@ bool pkgDPkgPM::Go(int OutStatusFd)
signal(SIGQUIT,old_SIGQUIT);
signal(SIGINT,old_SIGINT);
- if(master >= 0 && slave >= 0)
+ if(master >= 0)
+ {
tcsetattr(0, TCSAFLUSH, &tt);
+ close(master);
+ }
// Check for an error code.
if (WIFEXITED(Status) == 0 || WEXITSTATUS(Status) != 0)