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 <keur@xcf.berkeley.edu>
This commit is contained in:
Kevin Kuehler 2019-10-15 02:01:49 -07:00 committed by Drew DeVault
parent be4ea0d96b
commit 310bec2702

View file

@ -537,6 +537,7 @@ func (pv *PartViewer) attemptCopy() {
go func() {
<-ch
<-ch
pv.filter.Wait()
pv.pagerin.Close()
}()
}