mirror of
https://github.com/tio/tio.git
synced 2026-05-01 14:57:59 +02:00
Fix double call of tty_disconnect() on macOS/Darwin.
This commit is contained in:
parent
e572255fd2
commit
4269ec835d
1 changed files with 1 additions and 1 deletions
|
|
@ -1585,7 +1585,7 @@ int tty_connect(void)
|
||||||
#elif defined(__APPLE__)
|
#elif defined(__APPLE__)
|
||||||
if (errno == EBADF)
|
if (errno == EBADF)
|
||||||
{
|
{
|
||||||
goto error_read;
|
break; // tty_disconnect() will be naturally triggered by atexit()
|
||||||
}
|
}
|
||||||
#else
|
#else
|
||||||
tio_error_printf("select() failed (%s)", strerror(errno));
|
tio_error_printf("select() failed (%s)", strerror(errno));
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue