1
0
mirror of https://git.sr.ht/~sircmpwn/aerc synced 2024-11-23 16:42:07 +01:00

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

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