]> git.saurik.com Git - apt.git/blobdiff - apt-pkg/deb/dpkgpm.cc
merge from the lp:~donkult/apt/sid branch
[apt.git] / apt-pkg / deb / dpkgpm.cc
index 9d144a22729423053e14b97ad748d41fcc269656..fb6054f79446ce0db1359821fb557dcf3997b13e 100644 (file)
@@ -1063,7 +1063,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)