Skip to content

Commit

Permalink
Merge pull request #5896 from skeyby/fixes_5895
Browse files Browse the repository at this point in the history
Fixes 5895 - treekill syntax incompatible with freebsd
  • Loading branch information
Unitech authored Nov 13, 2024
2 parents dea7b5c + 6940db7 commit be15de4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/TreeKill.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ module.exports = function (pid, signal, callback) {
case 'win32':
exec('taskkill /pid ' + pid + ' /T /F', { windowsHide: true }, callback);
break;
case 'freebsd':
case 'darwin':
buildProcessTree(pid, tree, pidsToProcess, function (parentPid) {
return spawn('pgrep', ['-P', parentPid]);
Expand Down

0 comments on commit be15de4

Please sign in to comment.