diff --git a/kitty/child-monitor.c b/kitty/child-monitor.c index 3334f6544..e0e61e211 100644 --- a/kitty/child-monitor.c +++ b/kitty/child-monitor.c @@ -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; }