summaryrefslogtreecommitdiffstats
path: root/usr.sbin/bhyve/uart_emul.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr.sbin/bhyve/uart_emul.c')
-rw-r--r--usr.sbin/bhyve/uart_emul.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.sbin/bhyve/uart_emul.c b/usr.sbin/bhyve/uart_emul.c
index 2fbbd15..dd1c220 100644
--- a/usr.sbin/bhyve/uart_emul.c
+++ b/usr.sbin/bhyve/uart_emul.c
@@ -585,7 +585,7 @@ uart_tty_backend(struct uart_softc *sc, const char *opts)
retval = -1;
- fd = open(opts, O_RDWR);
+ fd = open(opts, O_RDWR | O_NONBLOCK);
if (fd > 0 && isatty(fd)) {
sc->tty.fd = fd;
sc->tty.opened = true;
OpenPOWER on IntegriCloud