mikaku / Fiwix

A UNIX-like kernel for the i386 architecture
https://www.fiwix.org
Other
401 stars 32 forks source link

Fix UNIX sockets working with select() #83

Closed ghaerr closed 5 months ago

ghaerr commented 5 months ago

Fixes problems with UNIX sockets when used with select() system call.

The problem was that processes sleeping in select weren't awakened when new data arrived. This should also fix the untested case of a server waiting in select awaiting an accept connection on its listening socket, as well as processes sleeping in select during socket destruction.

Discussed in https://github.com/mikaku/Fiwix/issues/80#issuecomment-1981243955 and tested with Nano-X and client/server socket test code.

mikaku commented 5 months ago

Thank you very much!