summaryrefslogtreecommitdiff
path: root/backend/dnssd.c
diff options
context:
space:
mode:
authormsweet <msweet@a1ca3aef-8c08-0410-bb20-df032aa958be>2011-01-17 23:54:15 +0000
committermsweet <msweet@a1ca3aef-8c08-0410-bb20-df032aa958be>2011-01-17 23:54:15 +0000
commit0268488e2f31bbec0c6b02ff7b7594b3191e6177 (patch)
tree23495e9caedd80740ae4d956554c014d339da456 /backend/dnssd.c
parentc779abb06a2a4c102b65b3f9f65e4ca6a792fff7 (diff)
downloadcups-0268488e2f31bbec0c6b02ff7b7594b3191e6177.tar.gz
Merge changes from CUPS 1.5svn-r9491.
git-svn-id: svn+ssh://src.apple.com/svn/cups/easysw/current@2949 a1ca3aef-8c08-0410-bb20-df032aa958be
Diffstat (limited to 'backend/dnssd.c')
-rw-r--r--backend/dnssd.c14
1 files changed, 10 insertions, 4 deletions
diff --git a/backend/dnssd.c b/backend/dnssd.c
index 57ecc6cb9..3e527c6a6 100644
--- a/backend/dnssd.c
+++ b/backend/dnssd.c
@@ -1,9 +1,9 @@
/*
* "$Id$"
*
- * DNS-SD discovery backend for the Common UNIX Printing System (CUPS).
+ * DNS-SD discovery backend for CUPS.
*
- * Copyright 2008-2009 by Apple Inc.
+ * Copyright 2008-2011 by Apple Inc.
*
* These coded instructions, statements, and computer programs are the
* property of Apple Inc. and are protected by Federal copyright
@@ -492,8 +492,14 @@ exec_backend(char **argv) /* I - Command-line arguments */
job_canceled = -1;
- if ((resolved_uri = cupsBackendDeviceURI(argv)) == NULL)
- exit(CUPS_BACKEND_FAILED);
+ while ((resolved_uri = cupsBackendDeviceURI(argv)) == NULL)
+ {
+ _cupsLangPrintFilter(stderr, "INFO", _("Unable to locate printer."));
+ sleep(10);
+
+ if (getenv("CLASS") != NULL)
+ exit(CUPS_BACKEND_FAILED);
+ }
/*
* Extract the scheme from the URI...