]> Sergey Matveev's repositories - public-inbox.git/commit
daemon: don't bother checking for existing FD flags
authorEric Wong <e@80x24.org>
Tue, 3 Jan 2023 00:05:06 +0000 (00:05 +0000)
committerEric Wong <e@80x24.org>
Tue, 3 Jan 2023 00:20:45 +0000 (00:20 +0000)
commit48af4772698dc3a9bcca06b5397ca13920a31d16
tree32cf9be3a63dcac76eae9c206613ebbd69c29934
parent324098fecf1126233578cc2f6290b4c8fdd9207b
daemon: don't bother checking for existing FD flags

FD_CLOEXEC is the only currently defined FD flag, and has been
the case for decades at this point.  I highly doubt any default
FD flag will ever be forced on us by the kernel, init system, or
Perl.  So save ourselves a syscall and just call F_SETFD with
the assumption FD_CLOEXEC is the only FD flag that we'd ever
care for.
lib/PublicInbox/DS.pm
lib/PublicInbox/Daemon.pm