Patch from Eric Norum <eric@cls.usask.ca> to make the NTP handler a little

more flexible about the error status returned from a timeout.
This commit is contained in:
Joel Sherrill
1999-12-13 19:20:38 +00:00
parent 5dae90a524
commit fc0b91c5d5
3 changed files with 3 additions and 3 deletions

View File

@@ -146,7 +146,7 @@ rtems_bsdnet_synchronize_ntp (int interval, rtems_task_priority priority)
if (i == 0) if (i == 0)
rtems_panic ("EOF"); rtems_panic ("EOF");
if (i < 0) { if (i < 0) {
if (errno == EWOULDBLOCK) if ((errno == EWOULDBLOCK) || (errno == EAGAIN))
continue; continue;
rtems_panic ("Can't receive: %s", strerror (errno)); rtems_panic ("Can't receive: %s", strerror (errno));
} }

View File

@@ -146,7 +146,7 @@ rtems_bsdnet_synchronize_ntp (int interval, rtems_task_priority priority)
if (i == 0) if (i == 0)
rtems_panic ("EOF"); rtems_panic ("EOF");
if (i < 0) { if (i < 0) {
if (errno == EWOULDBLOCK) if ((errno == EWOULDBLOCK) || (errno == EAGAIN))
continue; continue;
rtems_panic ("Can't receive: %s", strerror (errno)); rtems_panic ("Can't receive: %s", strerror (errno));
} }

View File

@@ -146,7 +146,7 @@ rtems_bsdnet_synchronize_ntp (int interval, rtems_task_priority priority)
if (i == 0) if (i == 0)
rtems_panic ("EOF"); rtems_panic ("EOF");
if (i < 0) { if (i < 0) {
if (errno == EWOULDBLOCK) if ((errno == EWOULDBLOCK) || (errno == EAGAIN))
continue; continue;
rtems_panic ("Can't receive: %s", strerror (errno)); rtems_panic ("Can't receive: %s", strerror (errno));
} }