~sircmpwn/aerc

06f81e8cd98b23f3fd6bf2813c25620084056243 — Kevin Kuehler 6 months ago eff8208
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>
1 files changed, 1 insertions(+), 0 deletions(-)

M widgets/terminal.go
M widgets/terminal.go => widgets/terminal.go +1 -0
@@ 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 {