From 762d97ed234a4bcdf08e1c9ff1ef892798b66b89 Mon Sep 17 00:00:00 2001 From: jhb Date: Fri, 27 Sep 2002 16:02:28 +0000 Subject: Give up on a tty if opening it's special file returns ENOENT like we do for ENXIO. Glanced at by: imp, gallatin --- sbin/init/init.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sbin') 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); } -- cgit v1.1