This commit is contained in:
Kovid Goyal
2017-09-15 10:45:13 +05:30
parent 7dc51d7d9e
commit c9695efd18
+4 -1
View File
@@ -343,7 +343,10 @@ pty_resize(int fd, struct winsize *dim) {
while(true) {
if (ioctl(fd, TIOCSWINSZ, dim) == -1) {
if (errno == EINTR) continue;
if (errno != EBADF && errno != ENOTTY) return false;
if (errno != EBADF && errno != ENOTTY) {
fprintf(stderr, "Failed to resize tty associated with fd: %d with error: %s", fd, strerror(errno));
return false;
}
}
break;
}