diff --git a/src/tty.c b/src/tty.c index 027e795..cdab4b9 100644 --- a/src/tty.c +++ b/src/tty.c @@ -1576,6 +1576,13 @@ int tty_connect(void) } else if (status == -1) { +#if defined(__CYGWIN__) + // Happens when port unpluged + if (errno == EACCES) + { + goto error_read; + } +#endif tio_error_printf("select() failed (%s)", strerror(errno)); exit(EXIT_FAILURE); }