aboutsummaryrefslogtreecommitdiff
path: root/widgets/msgviewer.go
diff options
context:
space:
mode:
authorKevin Kuehler <keur@xcf.berkeley.edu>2019-10-15 02:01:49 -0700
committerDrew DeVault <sir@cmpwn.com>2019-10-16 11:13:54 -0400
commit310bec27024579e7ada35585b3190ab875540804 (patch)
tree497296d3efc299338bc2b7d89ebd38c3f1aa6ba2 /widgets/msgviewer.go
parentbe4ea0d96b8cc70becb94f2d4e5abe41dea58f3a (diff)
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>
Diffstat (limited to 'widgets/msgviewer.go')
-rw-r--r--widgets/msgviewer.go1
1 files changed, 1 insertions, 0 deletions
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()
}()
}