better process killing

This commit is contained in:
Jesse Duffield 2022-06-18 13:28:20 +10:00
parent a5821f5ec8
commit c9d891a913
9 changed files with 208 additions and 6 deletions

View file

@ -123,7 +123,7 @@ func (self *cmdObjRunner) RunAndProcessLines(cmdObj ICmdObj, onLine func(line st
return err
}
if stop {
_ = cmd.Process.Kill()
_ = Kill(cmd)
break
}
}