mickelson / sfml-pi

SFML on Linux without X11 using DRM/KMS (or dispmanx on RPi0-3)
Other
62 stars 26 forks source link

check the return value of select() #4

Closed mignon-p closed 7 years ago

mignon-p commented 7 years ago

I was finding that my program would run for a little while, and then hang reading from stdin. Checking that the return value of select() is greater than zero (where zero means timeout) seems to fix that problem.

mickelson commented 7 years ago

thanks