Bug 2547780 - Fix daemonising broken by RLIMIT_NOFILE of 0 on Linux
Summary: Fix daemonising broken by RLIMIT_NOFILE of 0 on Linux
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: dhcpcd
Version: rawhide
Hardware: Unspecified
OS: Linux
unspecified
high
Target Milestone: ---
Assignee: Petr Menšík
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2026-10-08 05:30 UTC by Martin Osvald 🛹
Modified: 2026-11-15 01:25 UTC (History)
3 users (show)

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
Clone Of:
Environment:
Last Closed: 2026-10-08 08:31:11 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

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.


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