mirror of
https://github.com/zeromq/libzmq.git
synced 2025-11-13 20:37:32 +01:00
Problem: redundant else after return
Solution: remove redundant else
This commit is contained in:
@@ -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());
|
||||||
|
|||||||
Reference in New Issue
Block a user