about summary refs log tree commit homepage
diff options
context:
space:
mode:
-rw-r--r--lib/PublicInbox/Daemon.pm3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/PublicInbox/Daemon.pm b/lib/PublicInbox/Daemon.pm
index 9f33c05a..f0be034c 100644
--- a/lib/PublicInbox/Daemon.pm
+++ b/lib/PublicInbox/Daemon.pm
@@ -206,8 +206,7 @@ sub inherit () {
         my $end = $fds + 2; # LISTEN_FDS_START - 1
         my @rv = ();
         foreach my $fd (3..$end) {
-                my $s = IO::Handle->new;
-                $s->fdopen($fd, 'r');
+                my $s = IO::Handle->new_from_fd($fd, 'r');
                 if (my $k = sockname($s)) {
                         $listener_names{$k} = $s;
                         push @rv, $s;