From 06f81e8cd98b23f3fd6bf2813c25620084056243 Mon Sep 17 00:00:00 2001 From: Kevin Kuehler Date: Thu, 21 Nov 2019 11:24:40 -0800 Subject: 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 --- widgets/terminal.go | 1 + 1 file changed, 1 insertion(+) (limited to 'widgets') 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 { -- cgit v1.2.3