From: mike Date: Mon, 25 Mar 2002 18:10:08 +0000 (+0000) Subject: Add ENOENT as an error that should be retried. X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=7ed009b33df61d33b90317ce52398877bf7db4b4;p=thirdparty%2Fcups.git Add ENOENT as an error that should be retried. git-svn-id: svn+ssh://src.apple.com/svn/cups/cups.org/trunk@2282 7a7537e8-13f0-0310-91df-b6672ffda945 --- diff --git a/backend/parallel.c b/backend/parallel.c index 16fe63990..729a7d6ad 100644 --- a/backend/parallel.c +++ b/backend/parallel.c @@ -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 $". */ diff --git a/backend/usb.c b/backend/usb.c index 9950eb0b6..c5d947690 100644 --- a/backend/usb.c +++ b/backend/usb.c @@ -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 $". */