From 1b3016fbb108d3dbf50ced53012eabbfec4536ea Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Sun, 7 Feb 2021 23:05:17 -1000 Subject: lei: drop BSD::Resource usage 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") --- script/lei | 8 -------- 1 file changed, 8 deletions(-) (limited to 'script') 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"; -- cgit v1.2.3-24-ge0c7