diff options
author | Lukas Larsson <[email protected]> | 2017-07-11 18:24:59 +0200 |
---|---|---|
committer | Lukas Larsson <[email protected]> | 2017-09-11 15:15:33 +0200 |
commit | 7f8e78dee2ff485de7eddce1bfab28d0823031ae (patch) | |
tree | 502e87f8013744701e3a3141025a165e6edb046d | |
parent | c00564adbbfbc2a1b6ee2f7e5ad83662354dbce4 (diff) | |
download | otp-7f8e78dee2ff485de7eddce1bfab28d0823031ae.tar.gz otp-7f8e78dee2ff485de7eddce1bfab28d0823031ae.tar.bz2 otp-7f8e78dee2ff485de7eddce1bfab28d0823031ae.zip |
erts: Allow read in ttsl driver to return EAGAIN
-rw-r--r-- | erts/emulator/drivers/unix/ttsl_drv.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/erts/emulator/drivers/unix/ttsl_drv.c b/erts/emulator/drivers/unix/ttsl_drv.c index e425b99f16..3d1e58abe3 100644 --- a/erts/emulator/drivers/unix/ttsl_drv.c +++ b/erts/emulator/drivers/unix/ttsl_drv.c @@ -891,8 +891,8 @@ static void ttysl_from_tty(ErlDrvData ttysl_data, ErlDrvEvent fd) tpos = 0; } } - } else { - DEBUGLOG(("ttysl_from_tty: driver failure in read(%d,..) = %d\n", (int)(SWord)fd, i)); + } else if (errno != EAGAIN && errno != EWOULDBLOCK) { + DEBUGLOG(("ttysl_from_tty: driver failure in read(%d,..) = %d (errno = %d)\n", (int)(SWord)fd, i, errno)); driver_failure(ttysl_port, -1); } } |