Project Home
Project Home
Documents
Documents
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 - Open file descriptor tracking...: Page 1 of 3 (3 Items)
   
Open file descriptor tracking...  
Hi,

I need to have open file descriptors to be monitored in my application. For that I record all the file open calls (I use
 fd as a key to identify file -- what else???) and find file records by fd and clear them before files are closed.
Now I have an assertion failed that open() returned a fd which is already recorded in the list. As far as I understand, 
the only possibility for that could be _PULSE_CODE_COIDDEATH being already queued on dispatch but handler thread having 
not yet extracted and handled that pulse (not cleared the file record) while another thread has already received the 
same fd from next open() call.
Could anyone confirm if that scenario could be possible indeed (QNX 6.3.0 SP3) and in case of positive answer what 
approach would you suggest to maintain index of open files by their fds?