Minor code cleanup

This commit is contained in:
Martin Hurton
2012-11-13 13:06:29 +01:00
parent c179ad1173
commit 9013ee0d52
4 changed files with 12 additions and 9 deletions

View File

@@ -125,10 +125,10 @@ void zmq::poll_t::loop ()
// Wait for events.
int rc = poll (&pollset [0], pollset.size (), timeout ? timeout : -1);
if (rc == -1 && errno == EINTR)
if (rc == -1) {
errno_assert (errno == EINTR);
continue;
errno_assert (rc != -1);
}
// If there are no events (i.e. it's a timeout) there's no point
// in checking the pollset.