[Rxtx] RXTX serial port read() returns -1 unexpectedly and then blocks forever on close()
ryan.boder at gmail.com
Thu Mar 3 07:58:24 MST 2011
Yes I was doing the close in the serial event handler, I didn't realize that
caused a problem. Thanks, I'll fix it.
On Thu, Mar 3, 2011 at 4:50 AM, Michael Erskine <msemtd at googlemail.com>wrote:
> So if -1 is unexpectedly returned from read, and we have demonstrated
> that your USB-serial adapter can actually causes this to happen in
> RXTX, why not just ignore the -1 value? What happens when you try
> this? As for a hang on close, are your closing your port from within
> your serial event handler? I know that this can cause some serious
> Michael Erskine.
> Rxtx mailing list
> Rxtx at qbang.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Rxtx