]> Sergey Matveev's repositories - public-inbox.git/commit
evcleanup: do not create event loop if nothing was registered
authorEric Wong (Contractor, The Linux Foundation) <e@80x24.org>
Fri, 2 Mar 2018 03:43:30 +0000 (03:43 +0000)
committerEric Wong (Contractor, The Linux Foundation) <e@80x24.org>
Fri, 2 Mar 2018 09:07:59 +0000 (09:07 +0000)
commit76ecc4b349fd0c41ac9fdabaf501d33cd2049da1
tree44612792ba594b55ce35219fc7d912ffb111d14d
parentfaf36e5b451bd5dba0b1ae867f606ba0cb397af3
evcleanup: do not create event loop if nothing was registered

This was creating an unnecessary epoll descriptor via
Danga::Socket when using V2Writable to import a mbox.  That
said, there should probably be better way of detecting whether
or not we're inside a Danga::Socket event loop.

Fixes: 427245acacaf04a8
       ("evcleanup: ensure deferred close from timers are handled ASAP")
lib/PublicInbox/EvCleanup.pm