Bug 2254578 - cupsGetJobs() failes because libcups fails to connect to domain socket
Summary: cupsGetJobs() failes because libcups fails to connect to domain socket
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: cups
Version: rawhide
Hardware: Unspecified
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: Zdenek Dohnal
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2023-12-14 16:43 UTC by Zdenek Dohnal
Modified: 2023-12-31 01:19 UTC (History)
2 users (show)

Fixed In Version: cups-2.4.7-5.fc39 cups-2.4.7-5.fc38
Clone Of:
Environment:
Last Closed: 2023-12-18 02:03:46 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

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.


Note You need to log in before you can comment on or make changes to this bug.