From 310bec27024579e7ada35585b3190ab875540804 Mon Sep 17 00:00:00 2001 From: Kevin Kuehler Date: Tue, 15 Oct 2019 02:01:49 -0700 Subject: widgets/msgview: Reap the filter command The filter command shells out and returns almost immediately. Call Wait() so the filter process gets reaped. Prior to this patch, aerc creates a zombie process for every email that is viewed. Signed-off-by: Kevin Kuehler --- widgets/msgviewer.go | 1 + 1 file changed, 1 insertion(+) (limited to 'widgets') diff --git a/widgets/msgviewer.go b/widgets/msgviewer.go index d5bbace..05da2a0 100644 --- a/widgets/msgviewer.go +++ b/widgets/msgviewer.go @@ -537,6 +537,7 @@ func (pv *PartViewer) attemptCopy() { go func() { <-ch <-ch + pv.filter.Wait() pv.pagerin.Close() }() } -- cgit 1.4.1-2-gfad0