mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-02-05 04:06:08 -05:00
term: ptmx: don't abort on EAGAIN when trying to read from ptxm
This commit is contained in:
parent
c94cbdeb64
commit
e466063020
1 changed files with 3 additions and 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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue