Up and down on the download list working.

git-svn-id: svn://rakshasa.no/libtorrent/trunk/rtorrent@250 e378c898-3ddf-0310-93e7-cc216c733640
This commit is contained in:
rakshasa
2005-02-01 15:26:24 +00:00
parent cd9b014eb6
commit 0ff36babee
14 changed files with 95 additions and 25 deletions
+7 -2
View File
@@ -1,6 +1,7 @@
#include "config.h"
#include <stdexcept>
#include <sstream>
#include <ncurses.h>
#include <sigc++/bind.h>
#include <torrent/torrent.h>
@@ -34,9 +35,13 @@ Poll::poll() {
m_maxFd = select(m_maxFd, &m_readSet, &m_writeSet, &m_exceptSet, &timeout);
if (m_maxFd == EINTR)
if (m_maxFd >= 0)
return;
else if (errno == EINTR)
m_slotSelectInterrupted();
else if (m_maxFd < 0)
else if (errno < 0)
throw std::runtime_error("Poll::work(): select error");
}