Removed EAGAIN handling, again passing on the error to the server.
This commit is contained in:
parent
cf6b9d44ac
commit
bd74f5c8b5
@ -409,12 +409,7 @@ BOOL serial_tty_read(SERIAL_TTY* tty, BYTE* buffer, UINT32* Length)
|
|||||||
|
|
||||||
ZeroMemory(buffer, *Length);
|
ZeroMemory(buffer, *Length);
|
||||||
|
|
||||||
do
|
status = read(tty->fd, buffer, *Length);
|
||||||
{
|
|
||||||
errno = 0;
|
|
||||||
status = read(tty->fd, buffer, *Length);
|
|
||||||
}
|
|
||||||
while(EAGAIN == errno);
|
|
||||||
|
|
||||||
if (status < 0)
|
if (status < 0)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user