Project Home
Project Home
Documents
Documents
Wiki
Wiki
Discussion Forums
Discussions
Project Information
Project Info
Forum Topic - select_attach read callback with no data: (2 Items)
   
select_attach read callback with no data  
We register a callback using select_attach on a file descriptor for /dev/ser1 with the SELECT_FLAG_READ and 
SELECT_FLAG_REARM flags and we're occasionally seeing cases where our callback is called and read() returns 0 bytes. 
Once this 0 byte read happens, a kernel trace shows the system going into a tight loop of ionotify, read 0 bytes, 
ionotify, read 0 bytes, etc.. Any ideas what could be causing devc-ser8250 to fire the callback when no data is actually
 pending? Thanks.

Mark

Re: select_attach read callback with no data  
Replying to my own post, we seem to have found the issue and a solution. See http://community.qnx.com/sf/discussion/do/
listPosts/projects.bsp/discussion.bsp.topc22070.

Mark