-
Notifications
You must be signed in to change notification settings - Fork 28
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
startup.c:129 if daemon(0,0) fails, the error message is wrong. #28
Comments
No strong opinion from my side, please send a PR to change it |
I have no time yet for that now. |
Confirmed, If I do "rm -f /dev/null; mknode /dev/null c 1 3", gpm starts without problem. |
After speaking with glibc dev, it turns out that gpm doesn't handle errno. |
daemon(0,0) does:
if daemon(0,0) fails, that does not mean that fork failed. I can fail at setsid, chdir or redirections to /dev/null
I got gpm failed errno=37. Doing strace show that fork succeed indeed. The problem was that /dev/null is not a char device and lock failed.
The correct error should be "daemonize failed" not "fork failed"!
(Because of the missleading message I lost time.)
The text was updated successfully, but these errors were encountered: