Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: fixing EINTR usage for early termination of waitforevent() #71

Merged
merged 1 commit into from
Oct 17, 2024

Conversation

pthierry-ledger
Copy link
Member

The way the wait_for_event() gate behaves is invalid, as it returns a STATUS_INTR when the syscall returns before its timeout definition when finding an input event.
The semantic of STATUS_INTR is not made for such a behavior, as it is made to requires from the caller to reexecute the syscall immediatly due to a interrupted function call (typically when a signal generated an interruption).
In our API, returning previously because there is input data should return a STATUS_OK instead.

@pthierry-ledger pthierry-ledger added api impact the external API of the component bug Something isn't working labels Oct 17, 2024
@pthierry-ledger pthierry-ledger added this to the Sentry-v0.3.0 milestone Oct 17, 2024
@pthierry-ledger pthierry-ledger merged commit 2e565b4 into outpost-os:main Oct 17, 2024
37 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api impact the external API of the component bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants