]> git.ipfire.org Git - thirdparty/cups.git/commitdiff
Add ENOENT as an error that should be retried.
authormike <mike@7a7537e8-13f0-0310-91df-b6672ffda945>
Mon, 25 Mar 2002 18:10:08 +0000 (18:10 +0000)
committermike <mike@7a7537e8-13f0-0310-91df-b6672ffda945>
Mon, 25 Mar 2002 18:10:08 +0000 (18:10 +0000)
git-svn-id: svn+ssh://src.apple.com/svn/cups/cups.org/trunk@2282 7a7537e8-13f0-0310-91df-b6672ffda945

backend/parallel.c
backend/usb.c

index 16fe63990c7d09277ef7666df16a2beef8f627d1..729a7d6adafa463a9828c6d304ca258c5848498d 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * "$Id: parallel.c,v 1.41 2002/03/25 17:13:55 mike Exp $"
+ * "$Id: parallel.c,v 1.42 2002/03/25 18:10:08 mike Exp $"
  *
  *   Parallel port backend for the Common UNIX Printing System (CUPS).
  *
@@ -178,7 +178,7 @@ main(int  argc,             /* I - Number of command-line arguments (6 or 7) */
         fputs("INFO: Parallel port busy; will retry in 30 seconds...\n", stderr);
        sleep(30);
       }
-      else if (errno == ENXIO || errno == EIO)
+      else if (errno == ENXIO || errno == EIO || errno == ENOENT)
       {
         fputs("INFO: Printer not connected; will retry in 30 seconds...\n", stderr);
        sleep(30);
@@ -658,5 +658,5 @@ list_devices(void)
 
 
 /*
- * End of "$Id: parallel.c,v 1.41 2002/03/25 17:13:55 mike Exp $".
+ * End of "$Id: parallel.c,v 1.42 2002/03/25 18:10:08 mike Exp $".
  */
index 9950eb0b656e2ce997a9993696ad48d0bf55cf9c..c5d947690e3a3a6c9a9daba56aa8bb36aea62c52 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * "$Id: usb.c,v 1.28 2002/03/25 17:13:55 mike Exp $"
+ * "$Id: usb.c,v 1.29 2002/03/25 18:10:08 mike Exp $"
  *
  *   USB port backend for the Common UNIX Printing System (CUPS).
  *
@@ -167,7 +167,7 @@ main(int  argc,             /* I - Number of command-line arguments (6 or 7) */
         fputs("INFO: USB port busy; will retry in 30 seconds...\n", stderr);
        sleep(30);
       }
-      else if (errno == ENXIO || errno == EIO)
+      else if (errno == ENXIO || errno == EIO || errno == ENOENT)
       {
         fputs("INFO: Printer not connected; will retry in 30 seconds...\n", stderr);
        sleep(30);
@@ -460,5 +460,5 @@ list_devices(void)
 
 
 /*
- * End of "$Id: usb.c,v 1.28 2002/03/25 17:13:55 mike Exp $".
+ * End of "$Id: usb.c,v 1.29 2002/03/25 18:10:08 mike Exp $".
  */