diff options
author | jhb <jhb@FreeBSD.org> | 2002-09-27 16:02:28 +0000 |
---|---|---|
committer | jhb <jhb@FreeBSD.org> | 2002-09-27 16:02:28 +0000 |
commit | 762d97ed234a4bcdf08e1c9ff1ef892798b66b89 (patch) | |
tree | c53878d528d823078c414d4f6598447aa4bb4682 /sbin/init | |
parent | 34f9f49c0e6b1f01b6861c70542337b5cc0a34f3 (diff) | |
download | FreeBSD-src-762d97ed234a4bcdf08e1c9ff1ef892798b66b89.zip FreeBSD-src-762d97ed234a4bcdf08e1c9ff1ef892798b66b89.tar.gz |
Give up on a tty if opening it's special file returns ENOENT like we do for
ENXIO.
Glanced at by: imp, gallatin
Diffstat (limited to 'sbin/init')
-rw-r--r-- | sbin/init/init.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sbin/init/init.c b/sbin/init/init.c index 9a1cd68..2ad5d95 100644 --- a/sbin/init/init.c +++ b/sbin/init/init.c @@ -939,7 +939,7 @@ new_session(session_t *sprev, int session_index, struct ttyent *typ) * then don't add the device to the session list. */ if ((fd = open(sp->se_device, O_RDONLY | O_NONBLOCK, 0)) < 0) { - if (errno == ENXIO) { + if (errno == ENXIO || errno == ENOENT) { free_session(sp); return (0); } |