From b393bc25e2c66e3ecf7df97a59f4105cd482814a Mon Sep 17 00:00:00 2001 From: Michael Sweet Date: Wed, 8 Mar 2017 13:43:23 -0500 Subject: [PATCH] The scheduler could pause responding to client requests in order to save state changes to disk () --- CHANGES.txt | 4 +++- scheduler/main.c | 4 ++-- 2 files changed, 5 insertions(+), 3 deletions(-) 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__ -- 2.47.3