mirror of
https://github.com/nuintun/command-manager.git
synced 2025-06-07 03:14:07 +08:00
Update thread-kill.js
This commit is contained in:
parent
11416d4b35
commit
21b0829cdc
@ -1,7 +1,13 @@
|
|||||||
/**
|
/*!
|
||||||
* Created by nuintun on 2016/1/14.
|
* thread-kill
|
||||||
|
* Date: 2016/1/14
|
||||||
|
* https://github.com/nuintun/command-manager
|
||||||
|
*
|
||||||
|
* Referer: https://github.com/pkrumins/node-tree-kill
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
'use strict';
|
||||||
|
|
||||||
var spawn = require('./spawn');
|
var spawn = require('./spawn');
|
||||||
var exec = require('child_process').exec;
|
var exec = require('child_process').exec;
|
||||||
|
|
||||||
@ -113,4 +119,4 @@ function buildProcessTree(parentPid, tree, pidsToProcess, spawnChildProcessesLis
|
|||||||
};
|
};
|
||||||
|
|
||||||
ps.on('close', onClose);
|
ps.on('close', onClose);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user