mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2025-12-16 04:18:59 +00: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:
@@ -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