Don't log on EINTR.

Change on 2015/01/07 by ctiller <ctiller@google.com>
-------------
Created by MOE: http://code.google.com/p/moe-java
MOE_MIGRATED_REVID=83469190
pull/1/merge
ctiller 10 years ago committed by Tim Emiola
parent 1a277ecd93
commit f6db7b2745
  1. 4
      src/core/iomgr/pollset_multipoller_with_poll_posix.c
  2. 4
      src/core/iomgr/pollset_posix.c

@ -166,7 +166,9 @@ static int multipoll_with_poll_pollset_maybe_work(
r = poll(h->pfds, h->pfd_count, timeout);
if (r < 0) {
gpr_log(GPR_ERROR, "poll() failed: %s", strerror(errno));
if (errno != EINTR) {
gpr_log(GPR_ERROR, "poll() failed: %s", strerror(errno));
}
} else if (r == 0) {
/* do nothing */
} else {

@ -301,7 +301,9 @@ static int unary_poll_pollset_maybe_work(grpc_pollset *pollset,
r = poll(pfd, GPR_ARRAY_SIZE(pfd), timeout);
if (r < 0) {
gpr_log(GPR_ERROR, "poll() failed: %s", strerror(errno));
if (errno != EINTR) {
gpr_log(GPR_ERROR, "poll() failed: %s", strerror(errno));
}
} else if (r == 0) {
/* do nothing */
} else {

Loading…
Cancel
Save