[quoted lines by Greg KH on 2014/08/30 at 17:01 -0700]

>What does strace say?

Good suggestion - thanks. I should've tried that in the first place, and am 
sorry for having bothered you. In fact, both POLLHUP and POLLERR were being 
set, but the code was losing that fact. The code actually did resume executing, 
and eventually did a read() which didn't fail. What's special about the read is 
that it's done with the serial device in non-canoical mode so it was returning 
0 (rather than -1), and, thereby, not signalling that there was a problem. I'm 
not sure if, in this type of case, the non-canonical read should perhaps be 
returning -1 with errno set appropriately.

-- 
Dave Mielke           | 2213 Fox Crescent | The Bible is the very Word of God.
Phone: 1-613-726-0014 | Ottawa, Ontario   | http://Mielke.cc/bible/
EMail: d...@mielke.cc | Canada  K2A 1H7   | http://FamilyRadio.com/
--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to