]> git.saurik.com Git - apt.git/commitdiff
* apt-pkg/deb/dpkgpm.cc:
authorDavid Kalnischkies <kalnischkies@gmail.com>
Sat, 13 Feb 2010 00:59:22 +0000 (01:59 +0100)
committerDavid Kalnischkies <kalnischkies@gmail.com>
Sat, 13 Feb 2010 00:59:22 +0000 (01:59 +0100)
  - stdin redirected to /dev/null takes all CPU (Closes: #569488)
    Thanks to Aurelien Jarno for providing (again) a patch!

apt-pkg/deb/dpkgpm.cc
debian/changelog

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)
index a81a2abd00258599a0cd851fe7017c02bf47eb6d..5d2527cbd1c1c888bc095885af90127d92c52f2a 100644 (file)
@@ -21,6 +21,9 @@ apt (0.7.26) UNRELEASED; urgency=low
     - add APT::FTPArchive::AlwaysStat to disable the too aggressive
       caching if versions are build multiply times (not recommend)
       Patch by Christoph Goehre, thanks! (Closes: #463260)
+  * apt-pkg/deb/dpkgpm.cc:
+    - stdin redirected to /dev/null takes all CPU (Closes: #569488)
+      Thanks to Aurelien Jarno for providing (again) a patch!
 
   [ Ivan Masár ]
   * Slovak translation update. Closes: #568294