diff options
author | Eric Wong <e@80x24.org> | 2022-04-18 09:50:03 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2022-04-18 21:53:46 +0000 |
commit | 88c7c7c26b44ee4c1141fddb628a518b4d4d21a4 (patch) | |
tree | 6c579e1df8ac9d31584c08f1a204cf77796b665b /lib/PublicInbox/IPC.pm | |
parent | f9a8fba3102362e07dc27bde8e2bc7bd2a42a1ed (diff) | |
download | public-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/IPC.pm')
-rw-r--r-- | lib/PublicInbox/IPC.pm | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/PublicInbox/IPC.pm b/lib/PublicInbox/IPC.pm index 8376275e..67e86a43 100644 --- a/lib/PublicInbox/IPC.pm +++ b/lib/PublicInbox/IPC.pm @@ -47,6 +47,10 @@ my $send_cmd = PublicInbox::Spawn->can('send_cmd4') // do { require PublicInbox::CmdIPC4; $recv_cmd //= PublicInbox::CmdIPC4->can('recv_cmd4'); PublicInbox::CmdIPC4->can('send_cmd4'); +} // do { + require PublicInbox::Syscall; + $recv_cmd //= PublicInbox::Syscall->can('recv_cmd4'); + PublicInbox::Syscall->can('send_cmd4'); }; sub _get_rec ($) { |