user/dev discussion of public-inbox itself
 help / color / mirror / code / Atom feed
* [PATCH 0/3] there is no END{}
@ 2019-12-12 21:16 Eric Wong
  2019-12-12 21:16 ` [PATCH 1/3] ds: move EvCleanup code into DS Eric Wong
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Eric Wong @ 2019-12-12 21:16 UTC (permalink / raw)
  To: meta

END{} blocks make code harder to test and reuse in long-lived
processes.  Get rid of them in preparation for allowing daemons
to be restarted in tests without new processes.  This may make
our code more multiplicity-friendly in the future :>

Eric Wong (3):
  ds: move EvCleanup code into DS
  ds: move NNTP-only expiration code into DS
  daemon: use DESTROY for unlinking --pid-file

 MANIFEST                     |  1 -
 lib/PublicInbox/DS.pm        | 64 +++++++++++++++++++++++++++++++++---
 lib/PublicInbox/Daemon.pm    | 27 +++++++--------
 lib/PublicInbox/EvCleanup.pm | 30 -----------------
 lib/PublicInbox/HTTP.pm      |  1 -
 lib/PublicInbox/Inbox.pm     |  6 ++--
 lib/PublicInbox/NNTP.pm      | 49 +++------------------------
 t/httpd-unix.t               | 41 ++++++++++++-----------
 8 files changed, 100 insertions(+), 119 deletions(-)
 delete mode 100644 lib/PublicInbox/EvCleanup.pm


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2019-12-12 21:16 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-12-12 21:16 [PATCH 0/3] there is no END{} Eric Wong
2019-12-12 21:16 ` [PATCH 1/3] ds: move EvCleanup code into DS Eric Wong
2019-12-12 21:16 ` [PATCH 2/3] ds: move NNTP-only expiration " Eric Wong
2019-12-12 21:16 ` [PATCH 3/3] daemon: use DESTROY for unlinking --pid-file Eric Wong

Code repositories for project(s) associated with this public inbox

	https://80x24.org/public-inbox.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).