diff options
author | Miod Vallat <miod@cvs.openbsd.org> | 2006-08-05 16:58:48 +0000 |
---|---|---|
committer | Miod Vallat <miod@cvs.openbsd.org> | 2006-08-05 16:58:48 +0000 |
commit | abf0e33e77db61eb3b704c1dddd10ac7bc15a477 (patch) | |
tree | 4a9920b5735120b78a26b1c2937c33cc53a9e5f6 /sys/arch | |
parent | e914ce8896f9d90114d9a9b49733c56de1f141c0 (diff) |
If a dz child driver has taken over a line, it will never be accessible
as /dev/tty0X, period. So return ENXIO instead of EBUSY in dzopen().
Diffstat (limited to 'sys/arch')
-rw-r--r-- | sys/arch/vax/qbus/dz.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/arch/vax/qbus/dz.c b/sys/arch/vax/qbus/dz.c index 16cc70b7a38..33c45d8e287 100644 --- a/sys/arch/vax/qbus/dz.c +++ b/sys/arch/vax/qbus/dz.c @@ -1,4 +1,4 @@ -/* $OpenBSD: dz.c,v 1.13 2006/07/29 17:06:27 miod Exp $ */ +/* $OpenBSD: dz.c,v 1.14 2006/08/05 16:58:47 miod Exp $ */ /* $NetBSD: dz.c,v 1.23 2000/06/04 02:14:12 matt Exp $ */ /* * Copyright (c) 1996 Ken C. Wellsch. All rights reserved. @@ -288,9 +288,9 @@ dzopen(dev_t dev, int flag, int mode, struct proc *p) if (line >= sc->sc_type) return ENXIO; - /* if some other device is using the line, it's busy */ + /* if some other device is using the line, it's not available */ if (sc->sc_dz[line].dz_catch) - return EBUSY; + return ENXIO; if (sc->sc_openings++ == 0) dzdrain(sc); |