aboutsummaryrefslogtreecommitdiffstats
path: root/widgets/terminal.go
diff options
context:
space:
mode:
Diffstat (limited to 'widgets/terminal.go')
-rw-r--r--widgets/terminal.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/widgets/terminal.go b/widgets/terminal.go
index 6ad6904b..bbe7f826 100644
--- a/widgets/terminal.go
+++ b/widgets/terminal.go
@@ -180,6 +180,7 @@ func (term *Terminal) Close(err error) {
}
if term.cmd != nil && term.cmd.Process != nil {
term.cmd.Process.Kill()
+ term.cmd.Wait()
term.cmd = nil
}
if !term.closed && term.OnClose != nil {