ts-7000
[Top] [All Lists]

[ts-7000] Re: select() with timeout = 0

To:
Subject: [ts-7000] Re: select() with timeout = 0
From: "Harold" <>
Date: Thu, 11 Feb 2010 18:26:15 -0000
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/

<Prev in Thread] Current Thread [Next in Thread>
Admin

Disclaimer: Neither Andrew Taylor nor the University of NSW School of Computer and Engineering take any responsibility for the contents of this archive. It is purely a compilation of material sent by many people to the birding-aus mailing list. It has not been checked for accuracy nor its content verified in any way. If you wish to get material removed from the archive or have other queries about the archive e-mail Andrew Taylor at this address: andrewt@cse.unsw.EDU.AU