]> Sergey Matveev's repositories - public-inbox.git/commit
ds: rely on refcounting to close descriptors
authorEric Wong <e@80x24.org>
Sun, 30 Jun 2019 03:54:26 +0000 (03:54 +0000)
committerEric Wong <e@80x24.org>
Sun, 30 Jun 2019 04:00:54 +0000 (04:00 +0000)
commitd20a122c48a274e224d5c1a8d0f943ae395cff2a
tree900efd2c383f1684c70f041dc0c60722636f0fe9
parent8ef878ebc6f9f3a337341a3aa42a84fc190032a3
ds: rely on refcounting to close descriptors

Since we have EPOLL_CTL_DEL implemented for the poll(2) and
kqueue backends, we can rely on Perl refcounting to gently
close(2) the underlying file descriptors as references get
dropped.

This may be beneficial in the future if we want to drop a
descriptor from the event loop without actually closing it.
lib/PublicInbox/DS.pm