Commit 9e6f1c9a authored by Simon Giesecke's avatar Simon Giesecke

Problem: redundant else after return

Solution: remove redundant else
parent 6fa12bd6
...@@ -250,12 +250,13 @@ int zmq::signaler_t::wait (int timeout_) ...@@ -250,12 +250,13 @@ int zmq::signaler_t::wait (int timeout_)
if (unlikely (rc < 0)) { if (unlikely (rc < 0)) {
errno_assert (errno == EINTR); errno_assert (errno == EINTR);
return -1; return -1;
} else if (unlikely (rc == 0)) { }
if (unlikely (rc == 0)) {
errno = EAGAIN; errno = EAGAIN;
return -1; return -1;
} }
#ifdef HAVE_FORK #ifdef HAVE_FORK
else if (unlikely (pid != getpid ())) { if (unlikely (pid != getpid ())) {
// we have forked and the file descriptor is closed. Emulate an interrupt // we have forked and the file descriptor is closed. Emulate an interrupt
// response. // response.
//printf("Child process %d signaler_t::wait returning simulating interrupt #2\n", getpid()); //printf("Child process %d signaler_t::wait returning simulating interrupt #2\n", getpid());
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment