about summary refs log tree commit homepage
path: root/lib/PublicInbox/Qspawn.pm
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 /lib/PublicInbox/Qspawn.pm
parenta07ac38854c1308c4b58e13253527ec3b5e7e1f9 (diff)
downloadpublic-inbox-b04e5cf1bc8969cca74ef764f2de960b1ea821a4.tar.gz
fork failures are unfortunately common when Xapian has
gigabytes and gigabytes mmapped.
Diffstat (limited to 'lib/PublicInbox/Qspawn.pm')
-rw-r--r--lib/PublicInbox/Qspawn.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/PublicInbox/Qspawn.pm b/lib/PublicInbox/Qspawn.pm
index 9e4c8e08..9299096a 100644
--- a/lib/PublicInbox/Qspawn.pm
+++ b/lib/PublicInbox/Qspawn.pm
@@ -17,7 +17,7 @@ sub _do_spawn {
         my ($self, $cb) = @_;
         my $err;
         ($self->{rpipe}, $self->{pid}) = popen_rd(@{$self->{args}});
-        if ($self->{pid}) {
+        if (defined $self->{pid}) {
                 $running++;
         } else {
                 $self->{err} = $!;