Non-blocking file reads

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


Hi,

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?

Thanks, 
-- 
Christian Ludlam
chris at recoil.org



More information about the gcc mailing list