mirror of
https://github.com/tio/tio.git
synced 2026-05-01 14:57:59 +02:00
Fix file descriptor handling on MacOS
This commit is contained in:
parent
bfefd04b55
commit
e572255fd2
1 changed files with 7 additions and 1 deletions
|
|
@ -1582,9 +1582,15 @@ int tty_connect(void)
|
|||
{
|
||||
goto error_read;
|
||||
}
|
||||
#endif
|
||||
#elif defined(__APPLE__)
|
||||
if (errno == EBADF)
|
||||
{
|
||||
goto error_read;
|
||||
}
|
||||
#else
|
||||
tio_error_printf("select() failed (%s)", strerror(errno));
|
||||
exit(EXIT_FAILURE);
|
||||
#endif
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue