diff options
author | Eric Wong <e@80x24.org> | 2021-02-07 23:05:17 -1000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2021-02-08 22:07:47 +0000 |
commit | 1b3016fbb108d3dbf50ced53012eabbfec4536ea (patch) | |
tree | 4d7cd9f8cbc5a427fa30af8353564f9544bd79a1 /script | |
parent | 6214e8fabf5739ba5d2857321f082f8fac03136e (diff) | |
download | public-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-x | script/lei | 8 |
1 files changed, 0 insertions, 8 deletions
@@ -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"; |