Fix double call of tty_disconnect() on macOS/Darwin.

This commit is contained in:
Sylvain LAFRASSE 2024-01-12 12:11:24 +01:00
parent e572255fd2
commit 4269ec835d

View file

@ -1585,7 +1585,7 @@ int tty_connect(void)
#elif defined(__APPLE__)
if (errno == EBADF)
{
goto error_read;
break; // tty_disconnect() will be naturally triggered by atexit()
}
#else
tio_error_printf("select() failed (%s)", strerror(errno));