<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.2900.2963" name=GENERATOR></HEAD>
<BODY>
<DIV><SPAN class=340390412-09012010><FONT face=Arial 
size=2>hi,</FONT></SPAN></DIV>
<DIV><SPAN class=340390412-09012010><FONT face=Arial 
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=340390412-09012010><FONT face=Arial size=2>while porting 
the select.c to LCR, i found the problem:</FONT></SPAN></DIV>
<DIV><SPAN class=340390412-09012010><FONT face=Arial 
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=340390412-09012010><FONT face=Arial size=2>the unix select 
function returns a set of file descriptors to be handled. the result-loop (the 
loop after the select()) is called again, if more than one descriptor is removed 
by the callback funtion. this may lead to a another call to 
the callback function, because the bits of the FD_SETs do not change and 
still set.</FONT></SPAN></DIV>
<DIV><SPAN class=340390412-09012010><FONT face=Arial 
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=340390412-09012010><FONT face=Arial size=2>i think we must 
clear these bits, if they are handled, so the handler will not be called twice 
in case of a "restart" of that loop.</FONT></SPAN></DIV>
<DIV><SPAN class=340390412-09012010><FONT face=Arial 
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=340390412-09012010><FONT face=Arial 
size=2>regards,</FONT></SPAN></DIV>
<DIV><SPAN class=340390412-09012010><FONT face=Arial 
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=340390412-09012010><FONT face=Arial 
size=2>andreas</FONT></SPAN></DIV>
<DIV><SPAN class=340390412-09012010><FONT face=Arial 
size=2></FONT></SPAN> </DIV></BODY></HTML>