|
|
@ -968,11 +968,14 @@ int PosCtl::ReadTTY (char * inbuf, int length) {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
if (len < 0) {
|
|
|
|
if (len < 0) {
|
|
|
|
printf ("%s:%d could not read data from device:%s Error:%s\n", __FILE__, __LINE__,
|
|
|
|
if (errno != EAGAIN) {
|
|
|
|
device.c_str(), strerror(errno));
|
|
|
|
|
|
|
|
|
|
|
|
printf ("%s:%d could not read data from device:%s Error:(%d) %s\n", __FILE__, __LINE__,
|
|
|
|
|
|
|
|
device.c_str(), errno, strerror(errno));
|
|
|
|
errormessage_display ((char *)"window-posctl", (char *)"ReadTTY",
|
|
|
|
errormessage_display ((char *)"window-posctl", (char *)"ReadTTY",
|
|
|
|
(char *) "%s:%d could not read data from device:%s Error:%s\n", __FILE__, __LINE__,
|
|
|
|
(char *) "%s:%d could not read data from device:%s Error:%s\n", __FILE__, __LINE__,
|
|
|
|
device.c_str(), strerror(errno));
|
|
|
|
device.c_str(), strerror(errno));
|
|
|
|
|
|
|
|
}
|
|
|
|
inbuf[0] = 0;
|
|
|
|
inbuf[0] = 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
else {
|
|
|
|
else {
|
|
|
|