]> git.saurik.com Git - apt.git/blobdiff - apt-pkg/deb/dpkgpm.cc
- add --arch option for apt-ftparchive packages and contents commands
[apt.git] / apt-pkg / deb / dpkgpm.cc
index 565f01b842656421cc8878feddab4b23b88253e4..3dca2b20981ea0398ef9da2923b91cb1d8e87696 100644 (file)
@@ -1005,7 +1005,7 @@ bool pkgDPkgPM::Go(int OutStatusFd)
 
         // wait for input or output here
         FD_ZERO(&rfds);
-        if (!stdin_is_dev_null)
+        if (master >= 0 && !stdin_is_dev_null)
            FD_SET(0, &rfds); 
         FD_SET(_dpkgin, &rfds);
         if(master >= 0)