Skip to content

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

@lopter

Description

@lopter

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.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions