Skip to content

Command::detach can cause zombie processes #17176

Closed
@carllerche

Description

@carllerche

Properly spawning a detached process requires double forking in order to avoid zombie processes:

http://www.linuxjedi.co.uk/2014/02/why-use-double-fork-to-daemonize.html

I did not see this happening in https://github.com/rust-lang/rust/blob/master/src/libnative/io/process.rs

cc @aturon @alexcrichton

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