mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2026-11-09 08:37:58 +08:00
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:
1 parent
5dae90a524
commit
fc0b91c5d5
3 files changed
+3
-3
No files matched your search
@@ -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));
|
||||
}
|
||||
|
||||
@@ -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));
|
||||
}
|
||||
|
||||
@@ -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));
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user