From 5dfd4af2452a2fdb28e046e15a44b2d13bdacac0 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Sat, 19 Sep 2015 08:42:58 +0000 Subject: nntpd: support systemd FD inheritance + signals Avoid depending on IO::Socket::INET if we can help it, we do not need to bloat ourselves with lot of that functionality. --- lib/PublicInbox/NewsGroup.pm | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'lib/PublicInbox/NewsGroup.pm') diff --git a/lib/PublicInbox/NewsGroup.pm b/lib/PublicInbox/NewsGroup.pm index 6cc3f248..b8aed529 100644 --- a/lib/PublicInbox/NewsGroup.pm +++ b/lib/PublicInbox/NewsGroup.pm @@ -36,7 +36,10 @@ sub gcf { } sub mm { - my ($self) = @_; + my ($self, $check_only) = @_; + if ($check_only) { + return eval { PublicInbox::Msgmap->new($self->{git_dir}) }; + } $self->{mm} ||= eval { my $mm = PublicInbox::Msgmap->new($self->{git_dir}); -- cgit v1.2.3-24-ge0c7