From 424c816118b18a915f7e57a05331d6c09b463034 Mon Sep 17 00:00:00 2001 From: Sylvain LAFRASSE Date: Fri, 31 Aug 2018 13:13:58 +0200 Subject: [PATCH] Added O_NONBLOCK flag to open() call for macOS (10.13.6) compatibility. --- src/tty.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tty.c b/src/tty.c index 3713452..277127b 100644 --- a/src/tty.c +++ b/src/tty.c @@ -537,7 +537,7 @@ int tty_connect(void) int status; /* 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) { error_printf_silent("Could not open tty device (%s)", strerror(errno));