Skip to content

sock_poll: fix poll() not ignoring negative fds.#589

Merged
fincs merged 1 commit intodevkitPro:masterfrom
ITotalJustice:master
Sep 7, 2025
Merged

sock_poll: fix poll() not ignoring negative fds.#589
fincs merged 1 commit intodevkitPro:masterfrom
ITotalJustice:master

Conversation

@ITotalJustice
Copy link
Contributor

Hi!

I found that poll was not handling negative fds. Posix states that negative fds are simply ignored, this patch fixes that.

I noticed that 3ds poll errors if using anything less than -1 for an fd, so i also changed negative fds to be set to -1. Not sure if you want to keep that behaviour, i personally only needed -1 handling.

@fincs fincs merged commit 516e3a0 into devkitPro:master Sep 7, 2025
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.

2 participants

Comments