about summary refs log tree commit homepage
path: root/script
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2021-01-10 12:15:12 +0000
committerEric Wong <e@80x24.org>2021-01-12 03:51:42 +0000
commit6cc0e6870cb4950c08646769f2a7e30729b7d409 (patch)
tree13eb8e9cd433b215a8980ecbc6c7d1a741473466 /script
parent0c89ebd477d1c7a695a0a0b3023c0d41abe573fa (diff)
downloadpublic-inbox-6cc0e6870cb4950c08646769f2a7e30729b7d409.tar.gz
Actually, sending 4 FDs will be useful for lei internal xsearch
work once we start accepting input from stdin.  It won't be used
with the lightweight lei(1) client, however.

For WWW (eventually), a single FD may be enough.
Diffstat (limited to 'script')
-rwxr-xr-xscript/lei2
1 files changed, 1 insertions, 1 deletions
diff --git a/script/lei b/script/lei
index d954b9eb..5e30f4d7 100755
--- a/script/lei
+++ b/script/lei
@@ -67,7 +67,7 @@ Falling back to (slow) one-shot mode
         $buf .= "\0\0";
         select $sock;
         $| = 1; # unbuffer selected $sock
-        $send_cmd->($sock, 0, 1, 2, $buf, 0);
+        $send_cmd->($sock, [ 0, 1, 2 ], $buf, 0);
         while ($buf = <$sock>) {
                 $buf =~ /\Aexit=([0-9]+)\n\z/ and exit($1 + 0);
                 die $buf;