term: stop reading on eof

This commit is contained in:
Oleh Hushchenkov 2021-04-18 13:56:56 +03:00
parent 9413a18d9e
commit dfc517f671

View file

@ -247,6 +247,11 @@ fdm_ptmx(struct fdm *fdm, int fd, int events, void *data)
LOG_ERRNO("failed to read from pseudo terminal");
return false;
} else if (count == 0) {
/*
* Reached end-of-file
*/
break;
}
vt_from_slave(term, buf, count);