diff options
author | Eric Wong <e@80x24.org> | 2021-10-01 09:54:41 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2021-10-01 12:06:31 +0000 |
commit | 1c52f49354aa83e71fcceccae888da0c77f2391d (patch) | |
tree | bd6eabaed8cc0376e4a56cb6ec34cf962fd7ffdb /t/watch_maildir.t | |
parent | 5824d0d4ffac120a2840c980b4570868d6b3ea6b (diff) | |
download | public-inbox-1c52f49354aa83e71fcceccae888da0c77f2391d.tar.gz |
Since signalfd is often combined with our event loop, give it a convenient API and reduce the code duplication required to use it. EventLoop is replaced with ::event_loop to allow consistent parameter passing and avoid needlessly passing the package name on stack. We also avoid exporting SFD_NONBLOCK since it's the only flag we support. There's no sense in having the memory overhead of a constant function when it's in cold code.
Diffstat (limited to 't/watch_maildir.t')
-rw-r--r-- | t/watch_maildir.t | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/t/watch_maildir.t b/t/watch_maildir.t index e74b512f..6399fb7c 100644 --- a/t/watch_maildir.t +++ b/t/watch_maildir.t @@ -199,7 +199,7 @@ More majordomo info at http://vger.kernel.org/majordomo-info.html\n); $em->commit; # wake -watch up diag 'waiting for -watch to import new message'; - PublicInbox::DS->EventLoop; + PublicInbox::DS::event_loop(); $wm->kill; $wm->join; $ii->close; |