diff options
author | Michael Vogt <egon@bottom> | 2007-10-15 21:28:47 +0200 |
---|---|---|
committer | Michael Vogt <egon@bottom> | 2007-10-15 21:28:47 +0200 |
commit | 312764930ff995ea9e7239b170af387f10d16a11 (patch) | |
tree | 8a665fec46adfb0a85200e3cb34210d5a06e314d /apt-pkg/deb | |
parent | 6edbc051f4cc97ec24b0b95791aa3cdc2ade3aae (diff) | |
parent | 477b5d6cacb53e868ec182330ffdcc3678a98560 (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')
-rw-r--r-- | apt-pkg/deb/dpkgpm.cc | 5 |
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) |