]> Sergey Matveev's repositories - public-inbox.git/blobdiff - script/lei
lei: drop BSD::Resource usage
[public-inbox.git] / script / lei
index 0b0e2976435593d73dcd97a3cacce432679ddba6..cb605e2eac1dc7bf9259b84e95dc506e5e8df4d9 100755 (executable)
@@ -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";