Skip to content

Conversation

lionel-
Copy link
Contributor

@lionel- lionel- commented Oct 7, 2025

The poll() syscall might be interrupted by a SIGCHLD (a system() call) or a SIGINT. It is safe to retry in that case.

// Internal allocation has failed, but a retry might succeed
nix::errno::Errno::EAGAIN => continue,

_ => {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The remaining error documented in https://pubs.opengroup.org/onlinepubs/9699919799/functions/poll.html represents an unexpected state, so quitting the thread is likely appropriate.

@lionel- lionel- requested a review from jmcphers October 7, 2025 08:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant