aboutsummaryrefslogtreecommitdiff
path: root/widgets
diff options
context:
space:
mode:
authorKevin Kuehler <keur@xcf.berkeley.edu>2019-11-21 11:24:40 -0800
committerDrew DeVault <sir@cmpwn.com>2019-11-21 14:34:50 -0500
commit06f81e8cd98b23f3fd6bf2813c25620084056243 (patch)
tree0964179b1caf32868506f7a14ddcd7130de21291 /widgets
parenteff8208cd9dca3c990213fd033e8b11ed091952a (diff)
widgets/terminal: Reap more zombies
The editor and pager were not properly being reaped, causing resource leakage whenever a user replies to a message. Signed-off-by: Kevin Kuehler <keur@xcf.berkeley.edu>
Diffstat (limited to 'widgets')
-rw-r--r--widgets/terminal.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/widgets/terminal.go b/widgets/terminal.go
index 6ad6904..bbe7f82 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 {