[uClinux-dev] Re: Fw: Socket Select function is not working properly

David McCullough David_Mccullough at securecomputing.com
Fri Nov 9 06:05:52 EST 2007


Jivin Marcio Campos de Lima lays it down ...
> DAvid
> 
> Sorry to send this message directly to you but I don´t know why I cannot 
> post in the list anymore and I have this urgent question to put in the 
> list. Could you do it for me ?

Have CC'd it to the list in case someone can help.  Perhaps you need to
re-subscribe.  I get kicked off the list regularly,  keep an eye on it :-)

> To: uclinux-dev at uclinux.org
> Reply-To: marcio at net-open.com.br
> Subject: Socket Select function is not working properly 
> 
> I'm developing an application in uClinux (2.4) that uses the select
> socket function to wait for a message arrives on the socket or time-out.
> The function ALWAYS returns TIME-OUT even if a message arrive in the socket.

Make sure your first parameter to select is 1 greater than the highest
fd you are selecting on.  If you are only selecting on one fd then:

	rc = select(fd + 1, ....);

> Does anybody have faced such a problem ? Any clue on how to solve it ?

Otherwise send some code showing the problem,

Cheers,
Davidm

-- 
David McCullough,  david_mccullough at securecomputing.com,   Ph:+61 734352815
Secure Computing - SnapGear  http://www.uCdot.org http://www.cyberguard.com


More information about the uClinux-dev mailing list