Patch from Julian. Commit message by me.
[unix-history] / sys / scsi / ch.c
index ceec9d2..315dab9 100644 (file)
@@ -2,7 +2,7 @@
  * Written by grefen@?????
  * Based on scsi drivers by Julian Elischer (julian@tfs.com)
  *
  * Written by grefen@?????
  * Based on scsi drivers by Julian Elischer (julian@tfs.com)
  *
- *      $Id: ch.c,v 1.6 1993/11/25 01:37:31 wollman Exp $
+ *      $Id: ch.c,v 1.7 1993/12/19 00:54:49 wollman Exp $
  */
 
 #include       <sys/types.h>
  */
 
 #include       <sys/types.h>
@@ -148,7 +148,7 @@ chopen(dev)
         */
        if (ch_data[unit].flags & CH_OPEN) {
                printf("ch%d: already open\n", unit);
         */
        if (ch_data[unit].flags & CH_OPEN) {
                printf("ch%d: already open\n", unit);
-               return ENXIO;
+               return EBUSY;
        }
        /*
         * Make sure the device has been initialised
        }
        /*
         * Make sure the device has been initialised