mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-03-10 05:33:51 -04:00
term: stop reading on eof
This commit is contained in:
parent
9413a18d9e
commit
dfc517f671
1 changed files with 5 additions and 0 deletions
|
|
@ -247,6 +247,11 @@ fdm_ptmx(struct fdm *fdm, int fd, int events, void *data)
|
||||||
|
|
||||||
LOG_ERRNO("failed to read from pseudo terminal");
|
LOG_ERRNO("failed to read from pseudo terminal");
|
||||||
return false;
|
return false;
|
||||||
|
} else if (count == 0) {
|
||||||
|
/*
|
||||||
|
* Reached end-of-file
|
||||||
|
*/
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
vt_from_slave(term, buf, count);
|
vt_from_slave(term, buf, count);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue