about summary refs log tree commit homepage
path: root/script
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2021-02-07 23:05:17 -1000
committerEric Wong <e@80x24.org>2021-02-08 22:07:47 +0000
commit1b3016fbb108d3dbf50ced53012eabbfec4536ea (patch)
tree4d7cd9f8cbc5a427fa30af8353564f9544bd79a1 /script
parent6214e8fabf5739ba5d2857321f082f8fac03136e (diff)
downloadpublic-inbox-1b3016fbb108d3dbf50ced53012eabbfec4536ea.tar.gz
It's no longer necessary with the changes to stop doing
FD passing in our backend.

cf. commits 5180ed0a1cd65139 and 7d440bf3667b8ef5
    ("lei q: eliminate $not_done temporary git dir hack")
    ("lei q: reorder internals to reduce FD passing")
Diffstat (limited to 'script')
-rwxr-xr-xscript/lei8
1 files changed, 0 insertions, 8 deletions
diff --git a/script/lei b/script/lei
index 0b0e2976..cb605e2e 100755
--- a/script/lei
+++ b/script/lei
@@ -82,14 +82,6 @@ Falling back to (slow) one-shot mode
         while (my ($k, $v) = each %ENV) { $buf .= "\0$k=$v" }
         $buf .= "\0\0";
         my $n = $send_cmd->($sock, [0, 1, 2, fileno($dh)], $buf, MSG_EOR);
-        if (!$n && $!{ETOOMANYREFS} && eval { require BSD::Resource }) {
-                my $NOFILE = BSD::Resource::RLIMIT_NOFILE();
-                my ($s, $h) = BSD::Resource::getrlimit($NOFILE);
-                if ($s < $h && BSD::Resource::setrlimit($NOFILE, $h, $h)) {
-                        $n = $send_cmd->($sock, [0, 1, 2, fileno($dh)],
-                                        $buf, MSG_EOR);
-                }
-        }
         if (!$n) {
                 die "sendmsg: $! (check RLIMIT_NOFILE)\n" if $!{ETOOMANYREFS};
                 die "sendmsg: $!\n";