mirror of
https://github.com/tio/tio.git
synced 2026-05-01 14:57:59 +02:00
CYGWIN: Fix port auto connection. (#211)
This commit is contained in:
parent
1777206de7
commit
72399c4fe6
1 changed files with 7 additions and 0 deletions
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue