Project Home
Project Home
Wiki
Wiki
Discussion Forums
Discussions
Project Information
Project Info
BroadcastCommunity.qnx.com will be offline from May 31 6:00pm until June 2 12:00AM for upcoming system upgrades. For more information please go to https://community.qnx.com/sf/discussion/do/listPosts/projects.bazaar/discussion.bazaar.topc28418
Forum Topic - coid leakage: Page 1 of 3 (3 Items)
   
coid leakage  
There's probably a better forum for talking about the dispatch library code, but since I found the problem while trying 
to build an unloadable LSM, I'll report it here.

The dispatch_destroy() code does not free the select->ctrl->coid.  Thus, after some number of cycles of  select_attach()
/select_detach()/dispatch_destroy(), select_attach() fails with EMFILE.

I added a ConnectDetach in dispatch_destroy(), and that solved my immediate problem.  I guess you could argue both ways 
about select_detach() noticing that the coid was no longer needed and and dealing with it at that point, but it seems 
like it should be dealt with at least in dispatch_destroy.

Murf