Open skeyby opened 6 days ago
On FreeBSD when you stop a process that has some childs, the child process won't get stopped
Just start any forking process in PM2
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.
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.