-
Notifications
You must be signed in to change notification settings - Fork 102
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
dhcpcd-10.0.5 without privsep no longer forks into background #262
Comments
I've done more tests and this issue only appears when dhcpcd has been built without privsep support. |
@Polynomial-C can you test the |
@rsmarples Unfortunately, the two commits from |
I cannot reproduce that. Is dhcpcd crashing somehow maybe that we are not seeing? I'll try and spin up a Gentoo VM next week, but I don't really have much free time. |
Running |
I have reproduced the the issue and am looking working on a fix. |
For some reason, the stdio callback is extremely flaky on *some* Linux based distributions making it very hard to debug some things. Removing it is fine because we now enforce that we have file descriptors for stdin, stdout and stdrr on launch and dup them to /dev/null on daemonise. It's also interesting to see behavioural differences between some socketpair implementations that emit a HANGUP and some don't. As such, we now close the fork socket on daemonise once more AND in the fork_cb depending on if we hangup or read zero first. Fixes #262
@Polynomial-C should be good now, please test. |
@rsmarples: I can confirm. It's fixed now. Thank you very much! |
@Polynomial-C Excellent! I've pushed a few more fixes for various OS's so we should be good now.... feel free to re-test ;) |
@rsmarples: Re-tested, still good. 👍 |
Bug: NetworkConfiguration/dhcpcd#262 Signed-off-by: Sam James <sam@gentoo.org>
May be related..... I think the -b switch causes problems with dhcpcd-10.0.5 |
Using BLFS, I get "dhcpcd_fork_cb: Connection reset by peer", but I think it is the same issue, because it is fixed by the new commits. This issue is rather annoying. Can we expect another release soon? |
I'm awaiting on feedback from two issues and I'll make a new release. |
`dhcpcd` 10.0.5 has a bug which can cause the daemon fail to fork in the background on starting up. Version 10.0.6 fixes the issue, so move ahead to that. References: - NetworkConfiguration/dhcpcd#262
`dhcpcd` 10.0.5 has a bug which can cause the daemon fail to fork in the background on starting up. Version 10.0.6 fixes the issue, so move ahead to that. References: - NetworkConfiguration/dhcpcd#262
This happens on a Gentoo system with netifrc but can easily be reproduced without:
dhcpcd -A eth0
pidof dhcpcd
returning nothingBisecting the issue revealed commit c32c88b to be blamed here. Reverting that commit for 10.0.5 release "fixes" this issue.
The text was updated successfully, but these errors were encountered: