From: Michael Sweet Date: Wed, 8 Mar 2017 18:43:23 +0000 (-0500) Subject: The scheduler could pause responding to client requests in order to save state X-Git-Tag: v2.2.3~23 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b393bc2;p=thirdparty%2Fcups.git The scheduler could pause responding to client requests in order to save state changes to disk () --- diff --git a/CHANGES.txt b/CHANGES.txt index 5630ee88d7..7cbf24a5aa 100644 --- a/CHANGES.txt +++ b/CHANGES.txt @@ -1,10 +1,12 @@ -CHANGES.txt - 2.2.3 - 2017-01-26 +CHANGES.txt - 2.2.3 - 2017-03-08 -------------------------------- CHANGES IN CUPS V2.2.3 - The IPP backend could get into an infinite loop for certain errors, causing a hung queue () + - The scheduler could pause responding to client requests in order to + save state changes to disk () - Fixed some localization issues on macOS. diff --git a/scheduler/main.c b/scheduler/main.c index e18ffb0c68..bdb27a6db6 100644 --- a/scheduler/main.c +++ b/scheduler/main.c @@ -1,7 +1,7 @@ /* * Main loop for the CUPS scheduler. * - * Copyright 2007-2016 by Apple Inc. + * Copyright 2007-2017 by Apple Inc. * Copyright 1997-2007 by Easy Software Products, all rights reserved. * * These coded instructions, statements, and computer programs are the @@ -889,7 +889,7 @@ main(int argc, /* I - Number of command-line args */ * Write dirty config/state files... */ - if (DirtyCleanTime && current_time >= DirtyCleanTime) + if (DirtyCleanTime && current_time >= DirtyCleanTime && cupsArrayCount(Clients) == 0) cupsdCleanDirty(); #ifdef __APPLE__