Merge pull request #118 from huangsijun17/huangsijun17-patch-1

新增 结束进程 'SIGKILL' 参数
This commit is contained in:
Suwings 2019-07-22 11:43:12 +08:00 committed by GitHub
commit ef398c9d82
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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;