summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
author李俊杰 <phpor@users.noreply.github.com>2018-08-16 09:53:32 +0800
committerGitHub <noreply@github.com>2018-08-16 09:53:32 +0800
commit968910502553dce7f011ca843349807a5f132f58 (patch)
treebcf9e406e0c9983fb126c9dfb7facc246b34ef19
parent7fe426d1142df8b5a6281010955fa3e878158d3a (diff)
parent72c8c43b073d8fef4b6fce69003731ed7572447f (diff)
Merge pull request #1 from gostudy/phpor-kill-process
Fix a bug about a defunct state kill process
-rw-r--r--src/widgets/proc.go1
1 files changed, 1 insertions, 0 deletions
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()
}
/////////////////////////////////////////////////////////////////////////////////