diff options
| author | Daniel Eklöf <daniel@ekloef.se> | 2020-06-19 09:33:03 +0000 |
|---|---|---|
| committer | Daniel Eklöf <daniel@ekloef.se> | 2020-06-19 09:33:03 +0000 |
| commit | e466063020851791803c29b6f4bc00308e44c199 (patch) | |
| tree | ceabf081d09bb7c0c7048e6f3d643fa182ba0a6b | |
| parent | osc: set color: update both grids, but exclude scrollback (diff) | |
term: ptmx: don't abort on EAGAIN when trying to read from ptxm
| -rw-r--r-- | terminal.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -160,6 +160,9 @@ fdm_ptmx(struct fdm *fdm, int fd, int events, void *data) count = read(term->ptmx, buf, sizeof(buf)); if (count < 0) { + if (errno == EAGAIN) + return true; + LOG_ERRNO("failed to read from pseudo terminal"); return false; } |
