mirror of
https://github.com/tio/tio.git
synced 2026-05-01 23:07:58 +02:00
Added O_NONBLOCK flag to open() call for macOS (10.13.6) compatibility.
This commit is contained in:
parent
8db7bb56b5
commit
424c816118
1 changed files with 1 additions and 1 deletions
|
|
@ -537,7 +537,7 @@ int tty_connect(void)
|
||||||
int status;
|
int status;
|
||||||
|
|
||||||
/* Open tty device */
|
/* Open tty device */
|
||||||
fd = open(option.tty_device, O_RDWR | O_NOCTTY );
|
fd = open(option.tty_device, O_RDWR | O_NOCTTY | O_NONBLOCK );
|
||||||
if (fd < 0)
|
if (fd < 0)
|
||||||
{
|
{
|
||||||
error_printf_silent("Could not open tty device (%s)", strerror(errno));
|
error_printf_silent("Could not open tty device (%s)", strerror(errno));
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue