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

The `-d/--daemonize' option doesn't work on *BSD #16

Open
lopter opened this Issue May 9, 2016 · 0 comments

Comments

1 participant
@lopter
Owner

lopter commented May 9, 2016

kqueue(2) file descriptors aren't inherited by child processes therefore we need to fork before we call event_base_new from libevent.

This is pretty annoying because it means we need to rework lightsd's initialization process.

A quick hack/workaround by replacing fork with rfork(RFPROC), also seems to indicate that signal handling isn't working once in the background.

Thanks @kraduk for reporting this issue.

@lopter lopter added the bug label May 9, 2016

@lopter lopter added the help wanted label Dec 13, 2016

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment