From 6cc0e6870cb4950c08646769f2a7e30729b7d409 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Sun, 10 Jan 2021 12:15:12 +0000 Subject: ipc: start supporting sending/receiving more than 3 FDs 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. --- script/lei | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'script') 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; -- cgit v1.2.3-24-ge0c7