posctl: command without feedback will cause false error message

master
Steffen Pohle 2 years ago
parent 1b449d5454
commit 5ac24490d3

@ -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));
errormessage_display ((char *)"window-posctl", (char *)"ReadTTY", printf ("%s:%d could not read data from device:%s Error:(%d) %s\n", __FILE__, __LINE__,
(char *) "%s:%d could not read data from device:%s Error:%s\n", __FILE__, __LINE__, device.c_str(), errno, strerror(errno));
device.c_str(), strerror(errno)); errormessage_display ((char *)"window-posctl", (char *)"ReadTTY",
(char *) "%s:%d could not read data from device:%s Error:%s\n", __FILE__, __LINE__,
device.c_str(), strerror(errno));
}
inbuf[0] = 0; inbuf[0] = 0;
} }
else { else {

Loading…
Cancel
Save