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 04:12 AM.|
Powered by vBulletin®. Copyright ©2000 - 2014, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.