summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Vogt <michael.vogt@ubuntu.com>2007-08-27 14:28:27 +0200
committerMichael Vogt <michael.vogt@ubuntu.com>2007-08-27 14:28:27 +0200
commitbb8cbb9a85441f4c303456adedf6b72dbb67b617 (patch)
tree8c50a92ffe78da0b761c23327787dd8ad55c9c0d
parenta4cf3665915b79ef6dcafd9d1e12b722e0ee5342 (diff)
* apt-pkg/deb/dpkgpm.cc:
- on error in select() continue
-rw-r--r--apt-pkg/deb/dpkgpm.cc5
1 files changed, 3 insertions, 2 deletions
diff --git a/apt-pkg/deb/dpkgpm.cc b/apt-pkg/deb/dpkgpm.cc
index 68f0a339f..343e3d82f 100644
--- a/apt-pkg/deb/dpkgpm.cc
+++ b/apt-pkg/deb/dpkgpm.cc
@@ -813,9 +813,10 @@ bool pkgDPkgPM::Go(int OutStatusFd)
tv.tv_sec = 1;
tv.tv_usec = 0;
select_ret = select(max(master, _dpkgin)+1, &rfds, NULL, NULL, &tv);
- if (select_ret < 0)
+ if (select_ret < 0) {
std::cerr << "Error in select()" << std::endl;
- else if (select_ret == 0)
+ continue;
+ } else if (select_ret == 0)
continue;
if(master >= 0 && FD_ISSET(master, &rfds))