From e3c4292064f732f06e1948310009b13004125b37 Mon Sep 17 00:00:00 2001 From: wessels <> Date: Fri, 13 Jun 2003 05:54:17 +0000 Subject: [PATCH] Bugzilla #655: icmpRecv: recv: (11) Resource temporarily unavailable Handle the case when recv() returns EAGAIN and do not treat it like an error. --- src/icmp.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/icmp.cc b/src/icmp.cc index c941436b26..7377d1e0f5 100644 --- a/src/icmp.cc +++ b/src/icmp.cc @@ -1,6 +1,6 @@ /* - * $Id: icmp.cc,v 1.83 2003/02/21 22:50:09 robertc Exp $ + * $Id: icmp.cc,v 1.84 2003/06/12 23:54:17 wessels Exp $ * * DEBUG: section 37 ICMP Routines * AUTHOR: Duane Wessels @@ -89,7 +89,7 @@ icmpRecv(int unused1, void *unused2) sizeof(pingerReplyData), 0); - if (n < 0) { + if (n < 0 && EAGAIN != errno) { debug(37, 1) ("icmpRecv: recv: %s\n", xstrerror()); if (++fail_count == 10 || errno == ECONNREFUSED) -- 2.47.2