]> Sergey Matveev's repositories - public-inbox.git/blobdiff - lib/PublicInbox/LEI.pm
lei q: start ->mset while query_prepare runs
[public-inbox.git] / lib / PublicInbox / LEI.pm
index 6b6ee0f5e8edb8256c08a6674e196fab8c1690c5..4b1dc673bb6123f19f40f374877ec35d6f0a232f 100644 (file)
@@ -293,7 +293,7 @@ sub atfork_child_wq {
        my ($sock, $l2m_wq_s1);
        (@$self{qw(0 1 2)}, $sock, $l2m_wq_s1) = delete(@$wq{0..4});
        $self->{sock} = $sock if -S $sock;
-       $self->{l2m}->{-wq_s1} = $l2m_wq_s1 if $l2m_wq_s1;
+       $self->{l2m}->{-wq_s1} = $l2m_wq_s1 if $l2m_wq_s1 && -S $l2m_wq_s1;
        %PATH2CFG = ();
        $quit = \&CORE::exit;
        @TO_CLOSE_ATFORK_CHILD = ();