[Rxtx] EINTR error handling
gjobin at digger.ch
Tue Apr 17 06:08:30 MDT 2012
I'm developing a Java program that use RXTX for RS232 communication. On
my PC, all work fine. But when I try to run it on an embedded system
with jamvm + GNU Classpath, I get some error like "Interrupted system
call in getByte". I read some stuff about EINTR error and signal
handling and I have understood that the gc send signal to pause/resume
threads. I have seen that in the rxtx source code (SerialImp.c), some
piece of code using functions as SELECT() or WRITE() are surrounded with
a loop that check EINTR error and retry the last function (select(),
write(), etc) if an EINTR error occurs.
So, my question is: Why this EINTR check doesn't exit in function as
read_byte_array() where functions as READ are called?
Thank you in advance.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Rxtx