Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

treekill syntax incompatible with freebsd #5895

Open
skeyby opened this issue Sep 24, 2024 · 0 comments
Open

treekill syntax incompatible with freebsd #5895

skeyby opened this issue Sep 24, 2024 · 0 comments

Comments

@skeyby
Copy link

skeyby commented Sep 24, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant