It sounds like one of your fd's is ready for reading or writing when you call
select(). Have you checked to see which fd in which fd_set is set? Is it ready
for reading or writing? If so, then select() is doing just what it is supposed
to do.
--- In "colecian" <> wrote:
>
> Hi,
>
> all the man pages for select() indicate that it returns immediately if both
> fields of timeout (struct timeval) are zero.
>
> On the TS-7200 I find that select() returns a > 0 value (indicating a fd is
> set) even though timeval was zero.
>
> Wondered if anyone has seen this. My watchdog keeps tripping because the
> combination of 38400 serial and TCP fd's keeps it very busy.
>
> Best regards,
>
> Ian Cole
>
------------------------------------
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/ts-7000/
<*> Your email settings:
Individual Email | Traditional
<*> To change settings online go to:
http://groups.yahoo.com/group/ts-7000/join
(Yahoo! ID required)
<*> To change settings via email:
<*> To unsubscribe from this group, send an email to:
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
|