Bug 624441
Summary: | CUPS spawns a lot of backend process when being shut down while printing | ||||||
---|---|---|---|---|---|---|---|
Product: | Red Hat Enterprise Linux 6 | Reporter: | Olivier Fourdan <ofourdan> | ||||
Component: | cups | Assignee: | Tim Waugh <twaugh> | ||||
Status: | CLOSED ERRATA | QA Contact: | Jan Ščotka <jscotka> | ||||
Severity: | high | Docs Contact: | |||||
Priority: | high | ||||||
Version: | 6.0 | CC: | azelinka, jpopelka, kem, ltroan, twoerner, ykopkova | ||||
Target Milestone: | rc | Keywords: | Patch | ||||
Target Release: | --- | ||||||
Hardware: | All | ||||||
OS: | Linux | ||||||
Whiteboard: | |||||||
Fixed In Version: | cups-1.4.2-37.el6 | Doc Type: | Bug Fix | ||||
Doc Text: | Story Points: | --- | |||||
Clone Of: | Environment: | ||||||
Last Closed: | 2011-05-19 14:09:18 UTC | Type: | --- | ||||
Regression: | --- | Mount Type: | --- | ||||
Documentation: | --- | CRM: | |||||
Verified Versions: | Category: | --- | |||||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||
Cloudforms Team: | --- | Target Upstream Version: | |||||
Embargoed: | |||||||
Bug Depends On: | |||||||
Bug Blocks: | 627601 | ||||||
Attachments: |
|
Description
Olivier Fourdan
2010-08-16 13:35:12 UTC
Created attachment 438949 [details]
Possible patch
One possibility could be to stop the printer prior to stop the job, in the case where the action is forced (ie "action == CUPSD_JOB_FORCE").
As far as I can see, cupsdStopAllJobs() is called with "action == CUPSD_JOB_FORCE" only from cupsdFreeAllJobs() (there is one other call from main() but with action == CUPSD_JOB_DEFAULT)
That works and no additional backend is started when the scheduler is stopped while printing. Upon restart, the job get printed as well so that seems to work, however there might be some other side effects that I have not detected...
http://www.cups.org/strfiles/3679/str3679.patch An alternate patch which tracks whether we are shutting down and doesn't start new jobs automatically if so. An advisory has been issued which should help the problem described in this bug report. This report is therefore being closed with a resolution of ERRATA. For more information on therefore solution and/or where to find the updated files, please follow the link below. You may reopen this bug report if the solution does not work for you. http://rhn.redhat.com/errata/RHBA-2011-0715.html |