强制结束进程

服务器的进程经常杀不死。。。
This commit is contained in:
huangsijun17 2019-07-19 21:25:29 +08:00 committed by GitHub
parent 7a943d8390
commit df994e7f62
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;