]> Sergey Matveev's repositories - public-inbox.git/commit
on_destroy: support PID owner guard
authorEric Wong <e@80x24.org>
Thu, 31 Dec 2020 13:51:54 +0000 (13:51 +0000)
committerEric Wong <e@80x24.org>
Fri, 1 Jan 2021 05:00:40 +0000 (05:00 +0000)
commit0d6777e0389fe2db3edce41d675320746433f5b7
treebd74fac722a93a2432e472e9b5c9797a41737f5f
parent3823705b72199c61e8ed96aabd34d21a63fe153c
on_destroy: support PID owner guard

Since we'll be forking for Xapian indexing and maybe
other places, having a simple guard in place to ensure
OnDestroy doesn't unexpectedly unlink files or similar
is a safer option.
lib/PublicInbox/LEI.pm
lib/PublicInbox/Lock.pm
lib/PublicInbox/OnDestroy.pm
script/public-inbox-init
t/on_destroy.t