Open the uart emulation's backing tty in non-blocking mode.
This fixes the issue of bhyve appearing to halt when using nmdm ports for the console, until a connection is made to the other end. bhyveload already does this. Reported by: Many. MFC after: 3 weeks.
This commit is contained in:
parent
fb7aab9932
commit
f4959d3537
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user