修改 进程退出清理日志

This commit is contained in:
dengsgo
2020-12-03 21:11:00 +08:00
parent da54305188
commit a31bf71c1c

View File

@@ -318,7 +318,7 @@ func signalHandler() {
<-c <-c
if taskMan != nil && taskMan.cmd != nil && taskMan.cmd.Process != nil { if taskMan != nil && taskMan.cmd != nil && taskMan.cmd.Process != nil {
if err := taskMan.cmd.Process.Kill(); err != 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) os.Exit(0)