about summary refs log tree commit homepage
path: root/lib/PublicInbox/LEI.pm
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2022-04-18 09:50:03 +0000
committerEric Wong <e@80x24.org>2022-04-18 21:53:46 +0000
commit88c7c7c26b44ee4c1141fddb628a518b4d4d21a4 (patch)
tree6c579e1df8ac9d31584c08f1a204cf77796b665b /lib/PublicInbox/LEI.pm
parentf9a8fba3102362e07dc27bde8e2bc7bd2a42a1ed (diff)
downloadpublic-inbox-88c7c7c26b44ee4c1141fddb628a518b4d4d21a4.tar.gz
This enables lei-daemon to work without Inline::C nor
Socket::MsgHdr installed.  Prior to this, only the `lei' client
was using the pure Perl implementation.  Either C implementation
is still marginally faster, however.
Diffstat (limited to 'lib/PublicInbox/LEI.pm')
-rw-r--r--lib/PublicInbox/LEI.pm3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/PublicInbox/LEI.pm b/lib/PublicInbox/LEI.pm
index 9ab91714..4bd9183e 100644
--- a/lib/PublicInbox/LEI.pm
+++ b/lib/PublicInbox/LEI.pm
@@ -1277,6 +1277,9 @@ sub lazy_start {
                         require PublicInbox::CmdIPC4;
                         $send_cmd = PublicInbox::CmdIPC4->can('send_cmd4');
                         PublicInbox::CmdIPC4->can('recv_cmd4');
+                } // do {
+                        $send_cmd = PublicInbox::Syscall->can('send_cmd4');
+                        PublicInbox::Syscall->can('recv_cmd4');
                 };
         }
         $recv_cmd or die <<"";