Skip to content

nix::unistd::daemon will kill all other threads #2663

@blp

Description

@blp

Because libc's daemon() forks and then exits in the parent, only the thread that calls daemon() will survive in the child. Usually this means that one would only want to call daemon() from a single-threaded process. I am not certain whether it makes nix::unistd::daemon unsafe, but it seems like noting it in some way in the documentation would be a good idea.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions