mirror of
https://github.com/MCSManager/MCSManager.git
synced 2024-11-21 03:12:10 +08:00
Merge pull request #118 from huangsijun17/huangsijun17-patch-1
新增 结束进程 'SIGKILL' 参数
This commit is contained in:
commit
ef398c9d82
@ -276,7 +276,7 @@ class ServerProcess extends EventEmitter {
|
||||
|
||||
kill() {
|
||||
if (this._run) {
|
||||
this.process.kill();
|
||||
this.process.kill('SIGKILL');
|
||||
this._run = false;
|
||||
return true;
|
||||
}
|
||||
@ -309,4 +309,4 @@ class ServerProcess extends EventEmitter {
|
||||
|
||||
}
|
||||
|
||||
module.exports = ServerProcess;
|
||||
module.exports = ServerProcess;
|
||||
|
Loading…
Reference in New Issue
Block a user