about summary refs log tree commit homepage
path: root/lib
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 /lib
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 'lib')
-rw-r--r--lib/PublicInbox/LEI.pm5
1 files changed, 0 insertions, 5 deletions
diff --git a/lib/PublicInbox/LEI.pm b/lib/PublicInbox/LEI.pm
index cddb94e9..e2a945a4 100644
--- a/lib/PublicInbox/LEI.pm
+++ b/lib/PublicInbox/LEI.pm
@@ -941,11 +941,6 @@ sub lazy_start {
                 $! = $errno; # allow interpolation to stringify in die
                 die "connect($path): $!";
         }
-        if (eval { require BSD::Resource }) {
-                my $NOFILE = BSD::Resource::RLIMIT_NOFILE();
-                my ($s, $h) = BSD::Resource::getrlimit($NOFILE);
-                BSD::Resource::setrlimit($NOFILE, $h, $h) if $s < $h;
-        }
         umask(077) // die("umask(077): $!");
         bind($listener, $addr) or die "bind($path): $!";
         listen($listener, 1024) or die "listen: $!";