Merge branch 'terminal-stop-reading-on-eof'

This commit is contained in:
Daniel Eklöf 2021-04-18 19:13:26 +02:00
commit fbea064e88
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F

View file

@ -247,6 +247,9 @@ 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);