mirror of
https://github.com/morgan9e/FreeRDP
synced 2026-04-15 00:44:19 +09:00
Removed EAGAIN handling, again passing on the error to the server.
This commit is contained in:
@@ -409,12 +409,7 @@ BOOL serial_tty_read(SERIAL_TTY* tty, BYTE* buffer, UINT32* Length)
|
||||
|
||||
ZeroMemory(buffer, *Length);
|
||||
|
||||
do
|
||||
{
|
||||
errno = 0;
|
||||
status = read(tty->fd, buffer, *Length);
|
||||
}
|
||||
while(EAGAIN == errno);
|
||||
status = read(tty->fd, buffer, *Length);
|
||||
|
||||
if (status < 0)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user