about summary refs log tree commit homepage
path: root/script/public-inbox-mda
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2016-06-21 02:39:27 +0000
committerEric Wong <e@80x24.org>2016-06-21 02:40:44 +0000
commitb04e5cf1bc8969cca74ef764f2de960b1ea821a4 (patch)
tree2be20349c2691c020e1e5e901081b87d38383823 /script/public-inbox-mda
parenta07ac38854c1308c4b58e13253527ec3b5e7e1f9 (diff)
downloadpublic-inbox-b04e5cf1bc8969cca74ef764f2de960b1ea821a4.tar.gz
fork failures are unfortunately common when Xapian has
gigabytes and gigabytes mmapped.
Diffstat (limited to 'script/public-inbox-mda')
-rwxr-xr-xscript/public-inbox-mda1
1 files changed, 1 insertions, 0 deletions
diff --git a/script/public-inbox-mda b/script/public-inbox-mda
index 145aa710..013642d0 100755
--- a/script/public-inbox-mda
+++ b/script/public-inbox-mda
@@ -97,6 +97,7 @@ sub do_spamc {
         my ($in, $out) = @_;
         my $rdr = { 0 => fileno($in) };
         my ($fh, $pid) = popen_rd([qw/spamc -E --headers/], undef, $rdr);
+        defined $pid or die "failed to popen_rd spamc: $!\n";
         my $r;
         do {
                 $r = sysread($fh, $$out, 65536, length($$out));