From 72c8c43b073d8fef4b6fce69003731ed7572447f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E4=BF=8A=E6=9D=B0?= Date: Thu, 16 Aug 2018 09:50:32 +0800 Subject: [PATCH] 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. --- src/widgets/proc.go | 1 + 1 file changed, 1 insertion(+) diff --git a/src/widgets/proc.go b/src/widgets/proc.go index 566f01a..29db641 100644 --- a/src/widgets/proc.go +++ b/src/widgets/proc.go @@ -249,6 +249,7 @@ func (self *Proc) Kill() { } cmd := exec.Command(command, self.Rows[self.SelectedRow][self.UniqueCol]) cmd.Start() + cmd.Wait() } /////////////////////////////////////////////////////////////////////////////////