summaryrefslogtreecommitdiff
path: root/scheduler/main.c
Commit message (Collapse)AuthorAgeFilesLines
* Remove redundant codeAlfonso Gregory2021-09-071-4/+0
|
* Import all of the bug fixes from the OpenPrinting CUPS repository.Michael R Sweet2021-04-051-1/+1
| | | | | | Import the improvements to ippeveprinter from OpenPrinting/ippsample. Import the improvements to ippfind and ipptool from OpenPrinting/ippsample.
* Add workaround for systemd's lack of true launch-on-demand support (Issue #5640)Michael R Sweet2019-09-051-0/+2
|
* The scheduler would restart continuously when idle and printers were notMichael R Sweet2019-07-161-2/+23
| | | | shared (rdar://52561199)
* More clang warning fixes.Michael R Sweet2019-04-201-0/+1
|
* Fix typo.Michael R Sweet2019-02-211-1/+0
|
* Rework idle exit fix after some discussion.Michael R Sweet2019-02-211-40/+18
|
* The scheduler did not always idle exit as quickly as it could...Michael R Sweet2019-02-211-4/+3
|
* Fix service_idle_exit build issue with -Werror=maybe-unitializedDidier Raboud2018-12-141-1/+1
|
* Fix compile errors - not sure why these didn't show up before...Michael R Sweet2018-12-081-1/+1
|
* Normalize --help usage for cupsd (Issue #5326)Michael R Sweet2018-12-061-10/+18
|
* Revert os_transaction changes.Michael R Sweet2018-12-051-14/+4
|
* Switch from xpc_transaction_begin to os_transaction_create.Michael R Sweet2018-11-081-4/+14
|
* Fix stuck multi-file jobs (Issue #5359, Issue #5413)Michael R Sweet2018-11-071-0/+7
|
* Set QoS priority class for the main thread when running from launchd.Michael R Sweet2018-09-271-0/+9
|
* Fix regression in fix for rdar://40436080.Michael R Sweet2018-08-191-12/+1
|
* The scheduler was being backgrounded on macOS, causing applications to spinMichael R Sweet2018-07-171-1/+14
| | | | | | | | | | (rdar://40436080) scheduler/main.c: - Start/end transactions on startup/shutdown. scheduler/sysman.c: - Remove transactions from cupsdSetBusy.
* Replace the rest of the uses of __attribute__ that need to be portable ↵Michael R Sweet2018-07-091-1/+1
| | | | (Issue #5349)
* Support idle exit, even when printer sharing is enabled but no printers are ↵Michael R Sweet2018-06-181-6/+17
| | | | shared (Issue #5319)
* The scheduler did not write out dirty configuration and state files if thereMichael R Sweet2017-11-081-6/+3
| | | | | | were open client connections (Issue #5118) (reverted b393bc2)
* The scheduler did not run with a high enough priority, causing problems onMichael Sweet2017-10-021-0/+8
| | | | | | | | busy systems (rdar://33789342) - Change ProcessType to Adaptive for both cupsd and cups-lpd - Add "working" parameter to cupsdSetBusyState - Call cupsdSetBusyState on startup to boost the priority on startup.
* The scheduler (incorrectly) woke up once per second to remove stale temporaryMichael Sweet2017-09-111-3/+6
| | | | | | | | | queues (Issue #5100). - scheduler/main.c: Update local_timeout to start at 0 and only get updated as needed. Fixes: #5100
* Fix compile issue for PID file stuff when no systemd/launchd/upstart isMichael Sweet2017-08-271-18/+24
| | | | | | available. Also restructure code slightly so it isn't so convoluted.
* The scheduler now creates a PID file when not running on demand with a modernMichael Sweet2017-08-011-111/+126
| | | | service launcher (Issue #5080)
* Fix a build issue with `--enable-mallinfo` (Issue #5051)Michael Sweet2017-07-191-12/+0
|
* Make local printer deletion independent of job history updates.Michael Sweet2017-05-261-3/+27
|
* Delete temporary printers periodically and on shutdown (Issue #5003)Michael Sweet2017-05-251-2/+11
|
* The scheduler could pause responding to client requests in order to save stateMichael Sweet2017-03-081-2/+2
| | | | changes to disk (<rdar://problem/28690656>)
* Drop remainder of ASL logging code since it is deprecated in macOS Sierra.Michael R Sweet2016-10-201-9/+2
|
* Do some cleanup for the on-demand support - remove old launchd support (noMichael Sweet2016-06-211-144/+44
| | | | longer needed), naming/style updates, fix compiler warnings.
* Merge pull request #4825 from computersforpeace/upstartMichael R Sweet2016-06-211-180/+140
|\ | | | | Add Upstart socket activation support
| * support Upstart socket activationBrian Norris2016-05-271-6/+50
| | | | | | | | | | | | | | | | | | | | | | | | Inspired by code here: https://bugs.launchpad.net/upstart/+bug/1276713 With significant refactoring and bug-fixing. Notably, Upstart only supports passing a single file descriptor via UPSTART_FDS, so systems that want to use this support will need to configure CUPS appropriately in order to use this.
| * Refactor common on-demand socket setup codeBrian Norris2016-05-271-162/+78
| | | | | | | | | | This really can be in its own function, to avoid duplicating the same code for various init methods.
| * Factor out generic 'HAVE_ONDEMAND' macro flagBrian Norris2016-05-271-18/+18
| | | | | | | | | | | | HAVE_SYSTEMD and HAVE_LAUNCHD use very similar code for on-demand launching of cupsd, and if we want to add one more (e.g., upstart) it's easier to just use a single common flag: HAVE_ONDEMAND.
* | Exit with keep-alive instead of doing a in-place restart when on-demandMichael Sweet2016-05-311-0/+6
|/ | | | launching is in use (Issue #4760)
* Fix cancel of jobs with multiple documents (<rdar://problem/24854834>)msweet2016-03-101-20/+13
| | | | git-svn-id: svn+ssh://src.apple.com/svn/cups/cups.org/trunk@13131 a1ca3aef-8c08-0410-bb20-df032aa958be
* Update documentation for cupsd - "-s" option was not mentioned (STR #4772)msweet2016-02-121-4/+3
| | | | | | | Also update usage (-h) output. git-svn-id: svn+ssh://src.apple.com/svn/cups/cups.org/trunk@13086 a1ca3aef-8c08-0410-bb20-df032aa958be
* Add (undocumented) -T option to print the current sandbox profile to stdout.msweet2016-01-251-1/+31
| | | | git-svn-id: svn+ssh://src.apple.com/svn/cups/cups.org/trunk@13055 a1ca3aef-8c08-0410-bb20-df032aa958be
* Pending subscriptions would prevent the scheduler from idle exiting (STR #4754)msweet2016-01-111-15/+1
| | | | git-svn-id: svn+ssh://src.apple.com/svn/cups/cups.org/trunk@13039 a1ca3aef-8c08-0410-bb20-df032aa958be
* Security: Fix CERT VU #810572 exploiting the dynamic linker (STR #4609)msweet2015-06-081-9/+8
| | | | git-svn-id: svn+ssh://src.apple.com/svn/cups/cups.org/trunk@12700 a1ca3aef-8c08-0410-bb20-df032aa958be
* Add support for logging to stderr (STR #4505)msweet2015-06-031-3/+22
| | | | git-svn-id: svn+ssh://src.apple.com/svn/cups/cups.org/trunk@12689 a1ca3aef-8c08-0410-bb20-df032aa958be
* The scheduler no longer listens on the loopback interface unless the webmsweet2015-02-061-3/+1
| | | | | | | | interface or printer sharing are enabled (<rdar://problem/9136448>) git-svn-id: svn+ssh://src.apple.com/svn/cups/cups.org/trunk@12497 a1ca3aef-8c08-0410-bb20-df032aa958be
* Fix a random crash in the scheduler when not using systemd (STR #4484)msweet2014-11-121-75/+83
| | | | git-svn-id: svn+ssh://src.apple.com/svn/cups/cups.org/trunk@12245 a1ca3aef-8c08-0410-bb20-df032aa958be
* Printer sharing did not work when systemd was being used (STR #4497)msweet2014-10-201-1/+8
| | | | git-svn-id: svn+ssh://src.apple.com/svn/cups/cups.org/trunk@12216 a1ca3aef-8c08-0410-bb20-df032aa958be
* Re-introduce dark wake support, but this time while monitoring the currentmsweet2014-08-301-3/+2
| | | | | | | | | power source (<rdar://problem/17325852>) This allows printing to work while the system is visibly asleep. git-svn-id: svn+ssh://src.apple.com/svn/cups/cups.org/trunk@12140 a1ca3aef-8c08-0410-bb20-df032aa958be
* Free the sockets array returned by launch_activate_socket.msweet2014-08-041-0/+2
| | | | git-svn-id: svn+ssh://src.apple.com/svn/cups/cups.org/trunk@12082 a1ca3aef-8c08-0410-bb20-df032aa958be
* Don't call launch_activate_socket multiple times (<rdar://problem/17523218>)msweet2014-08-041-13/+0
| | | | | | | Bump version to 2.0rc1. git-svn-id: svn+ssh://src.apple.com/svn/cups/cups.org/trunk@12080 a1ca3aef-8c08-0410-bb20-df032aa958be
* Fix systemd build on Linux.msweet2014-03-211-1/+2
| | | | git-svn-id: svn+ssh://src.apple.com/svn/cups/cups.org/trunk@11722 a1ca3aef-8c08-0410-bb20-df032aa958be
* Fix builds on Linux.msweet2014-03-211-1/+5
| | | | git-svn-id: svn+ssh://src.apple.com/svn/cups/cups.org/trunk@11720 a1ca3aef-8c08-0410-bb20-df032aa958be
* Add systemd support to cupsd (STR #3282)msweet2014-03-211-335/+411
| | | | git-svn-id: svn+ssh://src.apple.com/svn/cups/cups.org/trunk@11717 a1ca3aef-8c08-0410-bb20-df032aa958be