This commit is contained in:
Kovid Goyal 2017-09-07 18:31:53 +05:30
parent 7dc51d7d9e
commit c9695efd18
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

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;
}