You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying the program on Arch Linux and it seems the Linux COM_Read read function is not working correctly. From debugging it with strace, I could see that the read() call only returns one byte instead of three and the remaining spill over to the next write/read pair.
read() can return less than the given length of bytes, so the read call must be run in a loop until the expected bytes are received or an error occurs or the timeout expires.
I'm still testing but if I get everything working, I will try to create a pull request.
The text was updated successfully, but these errors were encountered:
I'm trying the program on Arch Linux and it seems the Linux
COM_Read
read function is not working correctly. From debugging it with strace, I could see that theread()
call only returns one byte instead of three and the remaining spill over to the next write/read pair.read()
can return less than the given length of bytes, so the read call must be run in a loop until the expected bytes are received or an error occurs or the timeout expires.I'm still testing but if I get everything working, I will try to create a pull request.
The text was updated successfully, but these errors were encountered: