Cups scheduler do not start backend for each file for jobs with printmultiple files

Mario Goppold ml at goppold.net
Tue Jul 27 06:28:53 PDT 2010


Hi,

for jobs with more than one file the filter chain is called for each file but there ist only one call for the backend of the whole job.

Is this supposed to be like this?

If not (and I hope so) I have made a patch against cups-1.4.4:


--- cups-1.4.4_orig/scheduler/job.c     2010-03-31 00:07:33.000000000 +0200
+++ cups-1.4.4/scheduler/job.c  2010-07-27 15:16:47.000000000 +0200
@@ -1061,7 +1061,7 @@
     cupsdLogJob(job, CUPSD_LOG_INFO, "Started filter %s (PID %d)", command,
                 pid);

-    argv[6] = NULL;
+//    argv[6] = NULL;
     slot    = !slot;
   }

@@ -1074,7 +1074,7 @@

   if (strncmp(job->printer->device_uri, "file:", 5) != 0)
   {
-    if (job->current_file == 1 || job->printer->remote)
+    if (job->current_file || job->printer->remote)
     {
       sscanf(job->printer->device_uri, "%254[^:]", scheme);
       snprintf(command, sizeof(command), "%s/backend/%s", ServerBin, scheme);


Mario






More information about the cups mailing list