From: Michael R Sweet Date: Tue, 29 Mar 2016 14:05:12 +0000 (-0400) Subject: The scheduler did not handle out-of-disk situations gracefully (Issue #4742) X-Git-Tag: v2.2b1~74 X-Git-Url: http://git.ipfire.org/?p=thirdparty%2Fcups.git;a=commitdiff_plain;h=233715a8d39a40082ecb49a87df8880f3de35ad0 The scheduler did not handle out-of-disk situations gracefully (Issue #4742) --- diff --git a/CHANGES.txt b/CHANGES.txt index 4a61f266b..170080294 100644 --- a/CHANGES.txt +++ b/CHANGES.txt @@ -3,7 +3,8 @@ CHANGES.txt - 2.2b1 - 2016-03-30 CHANGES IN CUPS V2.2b1 - - Documentation changes (Issue #4781) + - The scheduler did not handle out-of-disk situations gracefully + (Issue #4742) - The LPD mini-daemon now detects invalid UTF-8 sequences in job, document, and user names (Issue #4748) - The IPP backend now continues on to the next job when the remote @@ -23,3 +24,4 @@ CHANGES IN CUPS V2.2b1 () - Added a new cupsHashData API and support for hashed job passwords () + - Documentation changes (Issue #4781) diff --git a/scheduler/job.c b/scheduler/job.c index b18c7ee19..784490e08 100644 --- a/scheduler/job.c +++ b/scheduler/job.c @@ -1,9 +1,7 @@ /* - * "$Id$" - * * Job management routines for the CUPS scheduler. * - * Copyright 2007-2015 by Apple Inc. + * Copyright 2007-2016 by Apple Inc. * Copyright 1997-2007 by Easy Software Products, all rights reserved. * * These coded instructions, statements, and computer programs are the @@ -2808,7 +2806,8 @@ cupsdUnloadCompletedJobs(void) if (job->dirty) cupsdSaveJob(job); - unload_job(job); + if (!job->dirty) + unload_job(job); } } @@ -5368,8 +5367,3 @@ update_job_attrs(cupsd_job_t *job, /* I - Job to update */ job->dirty = 1; cupsdMarkDirty(CUPSD_DIRTY_JOBS); } - - -/* - * End of "$Id$". - */