[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

nonblocking read

From: Pawel Kot
Subject: nonblocking read
Date: Sat, 10 Nov 2007 21:55:27 +0100


gnokii uses:
if (select(...) > 0)
sequence to read from the file descriptor.  In case of bluetooth
connection there may happen that gnokii/xgnokii/whatever is running
and sending requests and then suddenly gets out of range. So what
happenes there is that select() returns 1 and read() hands. Is there a
way to make it timeout after some time not breaking other stuff?

I tried but it makes
open() not working well (open() in our case should be blocking).

take care,
Pawel Kot

reply via email to

[Prev in Thread] Current Thread [Next in Thread]