diff options
| author | John Baldwin <jhb@FreeBSD.org> | 2002-09-27 16:02:28 +0000 |
|---|---|---|
| committer | John Baldwin <jhb@FreeBSD.org> | 2002-09-27 16:02:28 +0000 |
| commit | 60d6cc883c80f599dd9902a64ea9ddd41cbef9fb (patch) | |
| tree | c53878d528d823078c414d4f6598447aa4bb4682 /sbin/init | |
| parent | 2420b40463fcdf1bd774c02d0494c6352358f1c6 (diff) | |
Notes
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 9a1cd6839de1..2ad5d958f226 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); } |
