Non-blocking file reads

Christian Ludlam chris at
Fri Aug 9 07:03:47 PDT 2002


Is there a way to do a non-blocking read of stdin? I have a program running
in a taskwindow that needs to poll the serial port while waiting for keyboard
input. I tried using select() and poll(), both unsuccessfully.

Any ideas?

Christian Ludlam
chris at

More information about the gcc mailing list