FrodeSolheim / fs-uae

Cross-platform Amiga emulator with a slight focus on gaming, but also with solid support for productivity apps including just-in-time (JIT) compilation.
https://fs-uae.net/
GNU General Public License v2.0
460 stars 91 forks source link

bsdsocket.library's WaitSelect ignores timeout #333

Open Midar opened 11 months ago

Midar commented 11 months ago

When using WaitSelect with a timeout, WaitSelect never returns when there are no events to handle. This completely breaks using WaitSelect to peek on sockets.

This has been tested against various other implementations (MorphOS, Roadshow on a real Amiga, etc.) where it seems to work.

See https://objfw.nil.im/tktview/4c4b0ddef1 for the bug that triggered me to find this.