[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 |
Hi,
gnokii uses:
if (select(...) > 0)
read(...);
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 http://tfuj.pl/gnokii/nonblockingsocket.patch but it makes
open() not working well (open() in our case should be blocking).
take care,
pkot
--
Pawel Kot
- nonblocking read,
Pawel Kot <=
- Re: nonblocking read, Baurzhan Ismagulov, 2007/11/11
- Re: nonblocking read, Pawel Kot, 2007/11/11
- Re: nonblocking read, Baurzhan Ismagulov, 2007/11/12
- Re: nonblocking read, Pawel Kot, 2007/11/12
- Re: nonblocking read, Ladislav Michl, 2007/11/14
- Re: nonblocking read, Pawel Kot, 2007/11/14
- Re: nonblocking read, Baurzhan Ismagulov, 2007/11/14
- Re: nonblocking read, Pawel Kot, 2007/11/15