if (!job_id || !waitjob || !get_job_attrs)
continue;
- fputs("STATE: +cups-waiting-for-completed\n", stderr);
+ fputs("STATE: +cups-waiting-for-job-completed\n", stderr);
_cupsLangPrintFilter(stderr, "INFO", _("Waiting for job to complete."));
_("Control file sent successfully."));
}
- fputs("STATE: +cups-waiting-for-completed\n", stderr);
+ fputs("STATE: +cups-waiting-for-job-completed\n", stderr);
/*
* Collect the final supply levels as needed...
_cupsLangPrintFilter(stderr, "INFO", _("Print file sent."));
}
- fputs("STATE: +cups-waiting-for-completed\n", stderr);
+ fputs("STATE: +cups-waiting-for-job-completed\n", stderr);
if (waiteof)
{
}
fprintf(stderr, "DEBUG: Sent %lld bytes...\n", (off_t)total_bytes);
- fputs("STATE: +cups-waiting-for-completed\n", stderr);
+ fputs("STATE: +cups-waiting-for-job-completed\n", stderr);
/*
* Signal the side channel thread to exit...
cupsdLogMessage(CUPSD_LOG_DEBUG2, "finalize_job(job=%p(%d))", job, job->id);
/*
- * Clear the "connecting-to-device" and "cups-waiting-for-completed" reasons,
- * which are only valid when a printer is processing, along with any remote
- * printing job state...
+ * Clear the "connecting-to-device" and "cups-waiting-for-job-completed"
+ * reasons, which are only valid when a printer is processing, along with any
+ * remote printing job state...
*/
cupsdSetPrinterReasons(job->printer, "-connecting-to-device,"
- "cups-waiting-for-completed,"
+ "cups-waiting-for-job-completed,"
"cups-remote-pending,"
"cups-remote-pending-held,"
"cups-remote-processing,"
int backend; /* Backend process ID */
int status; /* Status code from filters */
int tries; /* Number of tries for this job */
- int completed; /* cups-waiting-for-completed seen */
+ int completed; /* cups-waiting-for-job-completed seen */
char *auth_env[3], /* AUTH_xxx environment variables,
* if any */
*auth_uid; /* AUTH_UID environment variable */
if (!strcmp(reason, "paused") && p->state == IPP_PRINTER_STOPPED)
cupsdSetPrinterState(p, IPP_PRINTER_IDLE, 1);
- if (!strcmp(reason, "cups-waiting-for-completed") && p->job)
+ if (!strcmp(reason, "cups-waiting-for-job-completed") && p->job)
p->job->completed = 0;
if (strcmp(reason, "connecting-to-device"))
if (!strcmp(reason, "paused") && p->state != IPP_PRINTER_STOPPED)
cupsdSetPrinterState(p, IPP_PRINTER_STOPPED, 1);
- if (!strcmp(reason, "cups-waiting-for-completed") && p->job)
+ if (!strcmp(reason, "cups-waiting-for-job-completed") && p->job)
p->job->completed = 1;
if (strcmp(reason, "connecting-to-device"))
{
/*
* If there are active printers that don't have the connecting-to-device
- * or cups-waiting-for-completed printer-state-reason then cancel the sleep
- * request, i.e., these reasons indicate a job that is not actively doing
- * anything...
+ * or cups-waiting-for-job-completed printer-state-reason then cancel the
+ * sleep request, i.e., these reasons indicate a job that is not actively
+ * doing anything...
*/
for (p = (cupsd_printer_t *)cupsArrayFirst(Printers);
{
for (i = 0; i < p->num_reasons; i ++)
if (!strcmp(p->reasons[i], "connecting-to-device") ||
- !strcmp(p->reasons[i], "cups-waiting-for-completed"))
+ !strcmp(p->reasons[i], "cups-waiting-for-job-completed"))
break;
if (!p->num_reasons || i >= p->num_reasons)
{
/*
* If there are active printers that don't have the connecting-to-device
- * or cups-waiting-for-completed printer-state-reasons then delay the
+ * or cups-waiting-for-job-completed printer-state-reasons then delay the
* sleep request, i.e., these reasons indicate a job is active...
*/
{
for (i = 0; i < p->num_reasons; i ++)
if (!strcmp(p->reasons[i], "connecting-to-device") ||
- !strcmp(p->reasons[i], "cups-waiting-for-completed"))
+ !strcmp(p->reasons[i], "cups-waiting-for-job-completed"))
break;
if (!p->num_reasons || i >= p->num_reasons)