Return EBUSY if device already open.

This commit is contained in:
mycroft 1993-06-14 12:46:56 +00:00
parent 330f5907f2
commit ba09c15c63
2 changed files with 2 additions and 2 deletions

View File

@ -178,7 +178,7 @@ int lmsopen(dev_t dev, int flag, int fmt, struct proc *p)
/* Disallow multiple opens */
if (sc->state & OPEN)
return(ENXIO);
return(EBUSY);
/* Initialize state */

View File

@ -158,7 +158,7 @@ int mmsopen(dev_t dev, int flag, int fmt, struct proc *p)
/* Disallow multiple opens */
if (sc->state & OPEN)
return(ENXIO);
return(EBUSY);
/* Initialize state */