mirror of
https://github.com/nuintun/command-manager.git
synced 2025-10-20 09:51:31 +08:00
Update thread-kill.js
This commit is contained in:
@@ -101,7 +101,7 @@ function buildProcessTree(parentPid, tree, pidsToProcess, spawnChildProcessesLis
|
|||||||
var onClose = function (code){
|
var onClose = function (code){
|
||||||
delete pidsToProcess[parentPid];
|
delete pidsToProcess[parentPid];
|
||||||
|
|
||||||
if (code != 0) {
|
if (code !== 0) {
|
||||||
// no more parent processes
|
// no more parent processes
|
||||||
if (Object.keys(pidsToProcess).length == 0) {
|
if (Object.keys(pidsToProcess).length == 0) {
|
||||||
callback();
|
callback();
|
||||||
|
Reference in New Issue
Block a user