]> Sergey Matveev's repositories - public-inbox.git/blobdiff - lib/PublicInbox/DS.pm
daemon: don't bother checking for existing FD flags
[public-inbox.git] / lib / PublicInbox / DS.pm
index a6c43b22d960ae9c01765e126677f3521c44e115..e4629e97acc461aaa2debbe1687db8f0aecab796 100644 (file)
@@ -130,8 +130,7 @@ sub _InitPoller () {
                my $fd = epoll_create();
                die "epoll_create: $!" if $fd < 0;
                open($ep_io, '+<&=', $fd) or return;
-               my $fl = fcntl($ep_io, F_GETFD, 0);
-               fcntl($ep_io, F_SETFD, $fl | FD_CLOEXEC);
+               fcntl($ep_io, F_SETFD, FD_CLOEXEC);
                $fd;
        } else {
                my $cls;