Bug 2254578

Summary: cupsGetJobs() failes because libcups fails to connect to domain socket
Product: [Fedora] Fedora Reporter: Zdenek Dohnal <zdohnal>
Component: cupsAssignee: Zdenek Dohnal <zdohnal>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: rawhideCC: twaugh, zdohnal
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Linux   
Whiteboard:
Fixed In Version: cups-2.4.7-5.fc39 cups-2.4.7-5.fc38 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2023-12-18 02:03:46 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:

Description Zdenek Dohnal 2023-12-14 16:43:34 UTC
If connect() fails with EAGAIN and poll() later gets POLLOUT|POLLHUP, cupsGetJobs() can fail due this connection failure.

Make libcups more versatile by checking socket options for errors and if it is okay, ignore POLLHUP.

Reproducible: Always

Comment 1 Fedora Update System 2023-12-15 10:46:36 UTC
FEDORA-2023-7001da0aea has been submitted as an update to Fedora 39. https://bodhi.fedoraproject.org/updates/FEDORA-2023-7001da0aea

Comment 2 Fedora Update System 2023-12-15 11:01:01 UTC
FEDORA-2023-e5cedffde1 has been submitted as an update to Fedora 38. https://bodhi.fedoraproject.org/updates/FEDORA-2023-e5cedffde1

Comment 3 Fedora Update System 2023-12-16 01:05:22 UTC
FEDORA-2023-7001da0aea has been pushed to the Fedora 39 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2023-7001da0aea`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2023-7001da0aea

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 4 Fedora Update System 2023-12-16 01:37:47 UTC
FEDORA-2023-e5cedffde1 has been pushed to the Fedora 38 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2023-e5cedffde1`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2023-e5cedffde1

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 5 Fedora Update System 2023-12-18 02:03:46 UTC
FEDORA-2023-7001da0aea has been pushed to the Fedora 39 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 6 Fedora Update System 2023-12-31 01:19:10 UTC
FEDORA-2023-e5cedffde1 has been pushed to the Fedora 38 stable repository.
If problem still persists, please make note of it in this bug report.