forked from mirror/MCSManager
强制结束进程
服务器的进程经常杀不死。。。
This commit is contained in:
parent
7a943d8390
commit
df994e7f62
@ -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