Skip to content
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

lopter opened this issue May 9, 2016 · 0 comments

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

lopter opened this issue May 9, 2016 · 0 comments


Copy link

@lopter 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
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
1 participant