修改 进程退出清理日志

master
dengsgo 2020-12-03 21:11:00 +08:00
parent da54305188
commit a31bf71c1c
1 changed files with 1 additions and 1 deletions

View File

@ -318,7 +318,7 @@ func signalHandler() {
<-c
if taskMan != nil && taskMan.cmd != nil && taskMan.cmd.Process != nil {
if err := taskMan.cmd.Process.Kill(); err != nil {
logError("stopping the process failed: PID:", taskMan.cmd.ProcessState.Pid(), ":", err)
logWarn("stopping the process failed: PID:", taskMan.cmd.ProcessState.Pid(), ":", err)
}
}
os.Exit(0)