删除 log

This commit is contained in:
dengsgo 2019-06-04 10:56:27 +08:00
parent 281a4f4d64
commit 30312d4b9c

View File

@ -45,13 +45,6 @@ func (t *TaskMan) Put(cf *changedFile) {
} }
func (t *TaskMan) preRun(cf *changedFile) { func (t *TaskMan) preRun(cf *changedFile) {
log.Println("preRun ...", t.cmd)
log.Println(t.cmd != nil)
if t.cmd != nil {
log.Println(t.cmd.Process != nil)
//log.Println(t.cmd.ProcessState != nil)
//log.Println(!t.cmd.ProcessState.Exited())
}
if t.cmd != nil && t.cmd.Process != nil { if t.cmd != nil && t.cmd.Process != nil {
log.Println("stop old process ") log.Println("stop old process ")
if err := t.cmd.Process.Kill(); err != nil { if err := t.cmd.Process.Kill(); err != nil {