maybe there is an select problem

This is merely a historical archive of years 2008-2021, before the migration to mailman3.

A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/OpenBSC@lists.osmocom.org/.

Andreas.Eversberg Andreas.Eversberg at versatel.de
Sat Jan 16 11:08:23 UTC 2010


hi,
 
while porting the select.c to LCR, i found the problem:
 
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.
 
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.
 
regards,
 
andreas
 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/openbsc/attachments/20100116/c80d79a8/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: select_question.patch
Type: application/octet-stream
Size: 702 bytes
Desc: select_question.patch
URL: <http://lists.osmocom.org/pipermail/openbsc/attachments/20100116/c80d79a8/attachment.obj>


More information about the OpenBSC mailing list