mirror of
https://github.com/nuintun/command-manager.git
synced 2025-06-06 10:54:07 +08:00
Update thread-kill.js
This commit is contained in:
parent
21b0829cdc
commit
48918f7010
@ -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();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user