forked from Imagelibrary/rtems
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:
@@ -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));
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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));
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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));
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user