Fix a bug about a defunct state kill process

When using dd shortcut to kill a process, a kill process with a defunct state is left.
This commit is contained in:
李俊杰 2018-08-16 09:50:32 +08:00 committed by GitHub
parent 7fe426d114
commit 72c8c43b07
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -249,6 +249,7 @@ func (self *Proc) Kill() {
}
cmd := exec.Command(command, self.Rows[self.SelectedRow][self.UniqueCol])
cmd.Start()
cmd.Wait()
}
/////////////////////////////////////////////////////////////////////////////////