Bug 2547780

Summary: Fix daemonising broken by RLIMIT_NOFILE of 0 on Linux
Product: [Fedora] Fedora Reporter: Martin Osvald 🛹 <mosvald>
Component: dhcpcdAssignee: Petr Menšík <pemensik>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: high Docs Contact:
Priority: unspecified    
Version: rawhideCC: fhrdina, mosvald, pemensik
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Linux   
Whiteboard:
Fixed In Version: dhcpcd-10.5.2-2.fc46 dhcpcd-10.5.2-2.fc45 dhcpcd-10.5.2-2.fc44 dhcpcd-10.5.2-2.fc43 Doc Type: ---
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2026-10-08 08:31:11 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 Martin Osvald 🛹 2026-10-08 05:30:55 UTC
On Linux, setrlimit(RLIMIT_NOFILE, 0) causes dup2(2) to fail with EBADF, because a limit of 0 means no file descriptors are allowed — including the ones needed to redirect stdout/stderr to /dev/null during daemonisation. The result: dhcpcd hangs or misbehaves on startup because anything reading a piped stdio never sees EOF.

Reproducible: Always




Additional Information:
https://bodhi.fedoraproject.org/updates/FEDORA-2026-f6c24b91ee
https://github.com/NetworkConfiguration/dhcpcd/pull/733

Comment 1 Fedora Update System 2026-10-08 07:18:14 UTC
FEDORA-2026-8e3a305e95 (dhcpcd-10.5.2-2.fc46) has been submitted as an update to Fedora 46.
https://bodhi.fedoraproject.org/updates/FEDORA-2026-8e3a305e95

Comment 2 Fedora Update System 2026-10-08 08:31:11 UTC
FEDORA-2026-8e3a305e95 (dhcpcd-10.5.2-2.fc46) has been pushed to the Fedora 46 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 3 Fedora Update System 2026-10-30 07:39:23 UTC
FEDORA-2026-c36b5fc4ca (dhcpcd-10.5.2-2.fc45) has been submitted as an update to Fedora 45.
https://bodhi.fedoraproject.org/updates/FEDORA-2026-c36b5fc4ca

Comment 4 Fedora Update System 2026-10-30 08:14:48 UTC
FEDORA-2026-77541e35f9 (dhcpcd-10.5.2-2.fc44) has been submitted as an update to Fedora 44.
https://bodhi.fedoraproject.org/updates/FEDORA-2026-77541e35f9

Comment 5 Fedora Update System 2026-10-30 08:57:27 UTC
FEDORA-2026-1201e2555d (dhcpcd-10.5.2-2.fc43) has been submitted as an update to Fedora 43.
https://bodhi.fedoraproject.org/updates/FEDORA-2026-1201e2555d

Comment 6 Fedora Update System 2026-10-31 02:43:38 UTC
FEDORA-2026-1201e2555d has been pushed to the Fedora 43 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2026-1201e2555d`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2026-1201e2555d

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

Comment 7 Fedora Update System 2026-10-31 03:02:57 UTC
FEDORA-2026-77541e35f9 has been pushed to the Fedora 44 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2026-77541e35f9`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2026-77541e35f9

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

Comment 8 Fedora Update System 2026-10-31 05:13:17 UTC
FEDORA-2026-c36b5fc4ca has been pushed to the Fedora 45 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2026-c36b5fc4ca`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2026-c36b5fc4ca

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

Comment 9 Fedora Update System 2026-11-05 01:03:07 UTC
FEDORA-2026-c36b5fc4ca (dhcpcd-10.5.2-2.fc45) has been pushed to the Fedora 45 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 10 Fedora Update System 2026-11-15 00:58:30 UTC
FEDORA-2026-77541e35f9 (dhcpcd-10.5.2-2.fc44) has been pushed to the Fedora 44 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 11 Fedora Update System 2026-11-15 01:25:14 UTC
FEDORA-2026-1201e2555d (dhcpcd-10.5.2-2.fc43) has been pushed to the Fedora 43 stable repository.
If problem still persists, please make note of it in this bug report.