]> git.saurik.com Git - apt.git/commitdiff
* merged with dpkg-log branch
authorMichael Vogt <michael.vogt@ubuntu.com>
Mon, 6 Aug 2007 13:13:30 +0000 (15:13 +0200)
committerMichael Vogt <michael.vogt@ubuntu.com>
Mon, 6 Aug 2007 13:13:30 +0000 (15:13 +0200)
1  2 
apt-pkg/deb/dpkgpm.cc

index 168c314836317f9e24787bdcfdb58b78dc4a5a4e,68f0a339f0bbe5d4934edf848dd0c10eb49019ce..e017c1a5b236966baf2f83dcf58e3614ab68c624
@@@ -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;