/*
* System management functions for the CUPS scheduler.
*
- * Copyright 2007-2017 by Apple Inc.
+ * Copyright 2007-2018 by Apple Inc.
* Copyright 2006 by Easy Software Products.
*
* Licensed under Apache License v2.0. See the file "LICENSE" for more information.
#include "cupsd.h"
#ifdef __APPLE__
-# include <xpc/xpc.h>
# include <IOKit/pwr_mgt/IOPMLib.h>
#endif /* __APPLE__ */
"Active clients, printing jobs, and dirty files"
};
#ifdef __APPLE__
- static int tran = 0; /* Current busy transaction */
static IOPMAssertionID keep_awake = 0;/* Keep the system awake while printing */
#endif /* __APPLE__ */
*/
if (newbusy != busy)
- {
busy = newbusy;
-#ifdef __APPLE__
- if (busy && !tran)
- {
- xpc_transaction_begin();
- tran = 1;
- }
- else if (!busy && tran)
- {
- xpc_transaction_end();
- tran = 0;
- }
-#endif /* __APPLE__ */
- }
-
#ifdef __APPLE__
if (cupsArrayCount(PrintingJobs) > 0 && !keep_awake)
{