Skip to content

Commit

Permalink
The scheduler could pause responding to client requests in order to s…
Browse files Browse the repository at this point in the history
…ave state

changes to disk (<rdar://problem/28690656>)
  • Loading branch information
michaelrsweet committed Mar 8, 2017
1 parent 45eb1e5 commit b393bc2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 3 additions & 1 deletion CHANGES.txt
Original file line number Diff line number Diff line change
@@ -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 (<rdar://problem/28008717>)
- The scheduler could pause responding to client requests in order to
save state changes to disk (<rdar://problem/28690656>)
- Fixed some localization issues on macOS.


Expand Down
4 changes: 2 additions & 2 deletions scheduler/main.c
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -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__
Expand Down

0 comments on commit b393bc2

Please sign in to comment.