Re: Non blocking tty I/O
You may want to use select to test if the bits are available or not.
"Mike solem" <firstname.lastname@example.org> wrote in message
> I'm reading data from the comport on linux, using 'read(1)'. This blocks
until it gets a byte. How can I get it to not block, so that it doesn't
hang forever waiting for a byte.
|All times are GMT. The time now is 02:03 PM.|
Powered by vBulletin®. Copyright ©2000 - 2013, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.