>Once a socket gets closed, that
>descriptor should be removed from the list of descriptors being polled on
>since the descriptor could get reused.
actually I am using a list and by checking the status of each element of the 
list I know if the socket is close or not and then decide to re-associate it or 
not.

>it appears that the descriptor was valid when it got
>re-associated. That
>can happen if the file descriptor got reused when say another socket or
>a file that is pollable got opened before the re-associate.
I just do not understand why a just closed socket can be re-assoicated. it 
should be impossible that a new socket with the same id is opened after an old 
socket is just closed. Anyway, I solved the problem by using the 
above-mentioned list.
Thanks for your answer.
 
 
This message posted from opensolaris.org
_______________________________________________
perf-discuss mailing list
perf-discuss@opensolaris.org

Reply via email to