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

options/posix: fix sys_futex_wait handling and fix an issue in pthread_once #1068

Merged
merged 2 commits into from
Jun 4, 2024

Conversation

Mathewnd
Copy link
Contributor

Some places don't handle a signal interruption in sys_futex_wait properly.

Also, pthread_once not only doesn't handle an EINTR but also doesn't handle an EAGAIN. This could mean there would be a tiny window where the function would complete and __mlibc_done would change but the thread wouldn't be sleeping. On return, that would cause a panic as EAGAIN was considered an error.

@Geertiebear Geertiebear merged commit 1580691 into managarm:master Jun 4, 2024
34 checks passed
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.

3 participants