From: Michael Vogt Date: Mon, 6 Aug 2007 13:13:30 +0000 (+0200) Subject: * merged with dpkg-log branch X-Git-Tag: 0.7.24ubuntu1~158^2 X-Git-Url: https://git.saurik.com/apt.git/commitdiff_plain/917832191acb189705762e13aab3b7c5e6e26653?ds=inline * merged with dpkg-log branch --- 917832191acb189705762e13aab3b7c5e6e26653 diff --cc apt-pkg/deb/dpkgpm.cc index 168c31483,68f0a339f..e017c1a5b --- a/apt-pkg/deb/dpkgpm.cc +++ b/apt-pkg/deb/dpkgpm.cc @@@ -770,9 -778,13 +778,10 @@@ bool pkgDPkgPM::Go(int OutStatusFd int _dpkgin = fd[0]; close(fd[1]); // close the write end of the pipe - // the read buffers for the communication with dpkg - char buf[2] = {0,0}; - // the result of the waitpid call int res; - close(slave); + if(slave > 0) + close(slave); // setups fds fd_set rfds;