From fc0b91c5d5cde0f23db6123419cd5cbe4041e52f Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Mon, 13 Dec 1999 19:20:38 +0000 Subject: Patch from Eric Norum to make the NTP handler a little more flexible about the error status returned from a timeout. --- cpukit/libnetworking/lib/rtems_bsdnet_ntp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cpukit/libnetworking') diff --git a/cpukit/libnetworking/lib/rtems_bsdnet_ntp.c b/cpukit/libnetworking/lib/rtems_bsdnet_ntp.c index a03ff080b1..11b0cef63a 100644 --- a/cpukit/libnetworking/lib/rtems_bsdnet_ntp.c +++ b/cpukit/libnetworking/lib/rtems_bsdnet_ntp.c @@ -146,7 +146,7 @@ rtems_bsdnet_synchronize_ntp (int interval, rtems_task_priority priority) if (i == 0) rtems_panic ("EOF"); if (i < 0) { - if (errno == EWOULDBLOCK) + if ((errno == EWOULDBLOCK) || (errno == EAGAIN)) continue; rtems_panic ("Can't receive: %s", strerror (errno)); } -- cgit v1.2.3