]> git.saurik.com Git - apt.git/commit
Deal with killed acquire methods properly instead of hanging
authorMichael Vogt <mvo@ubuntu.com>
Fri, 27 Nov 2015 11:07:48 +0000 (12:07 +0100)
committerMichael Vogt <mvo@ubuntu.com>
Fri, 27 Nov 2015 11:10:57 +0000 (12:10 +0100)
commita416a90b631a430306df6ed3fa1d4f3a1bdc7949
treec25476e2c0b342538e71acb0ea11b8da08995c3b
parent4c482ac554e1b533d98661de8585d5861d9ac562
Deal with killed acquire methods properly instead of hanging

This fixes a regression caussed by commit
95278287f4e1eeaf5d96749d6fc9bfc53fb400d0
that moved the error detection of RunFds() later into the loop.
However this broke detecting issues like dead acquire methods.
Instead of relying on the global error state (which is bad)
we now pass a boolean value back from RunFds() and break on
false.

Closes: #806406
apt-pkg/acquire.cc
apt-pkg/acquire.h