Skip to content

treekill syntax incompatible with freebsd #5895

@skeyby

Description

@skeyby

What's going wrong?

On FreeBSD when you stop a process that has some childs, the child process won't get stopped

How could we reproduce this issue?

Just start any forking process in PM2

Supporting information

Problem is in lib/TreeKill.js -- the default case is the linux syntax that is not working under FreeBSD (there's no --ppid switch on FreeBSD).

The solution is to use Darwin command line (pgrep) also for FreeBSD.

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