Skip to content

Add check for EAGAIN in OS_DoSelect loop #858

@skliper

Description

@skliper

Is your feature request related to a problem? Please describe.
On some other UNIX systems, select() can fail with the error EAGAIN if the system fails to allocate kernel-internal resources,
rather than ENOMEM as Linux does. POSIX specifies this error for poll(2), but not for select(). Portable programs may wish to
check for EAGAIN and loop, just as with EINTR.

} while (os_status < 0 && errno == EINTR);

Describe the solution you'd like
Add check for EAGAIN

Describe alternatives you've considered
None

Additional context
None

Requester Info
Jacob Hageman - NASA/GSFC, OSAL code review

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions