diff options
author | Kevin Kuehler <keur@xcf.berkeley.edu> | 2019-11-21 11:24:40 -0800 |
---|---|---|
committer | Drew DeVault <sir@cmpwn.com> | 2019-11-21 14:34:50 -0500 |
commit | 06f81e8cd98b23f3fd6bf2813c25620084056243 (patch) | |
tree | 0964179b1caf32868506f7a14ddcd7130de21291 /widgets | |
parent | eff8208cd9dca3c990213fd033e8b11ed091952a (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.go | 1 |
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 { |