Skip to content

Zombie/Defunct process when monitoring using pidfiles #91

@chtrinh

Description

@chtrinh

Looks like the fork process is still sticking around leading to a zombie process, if the main ruby thread is still running.
https://github.com/thuehlinger/daemons/blob/master/lib/daemons/monitor.rb#L62-L63

Not that big of a deal but it could used up the process table.

Possible fix?

pid_fork = fork { ... }
Process.waitpid(pid_fork)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions