]> Sergey Matveev's repositories - public-inbox.git/commit
index+xcpdb: improve SIG{INT,TERM,HUP,PIPE} behavior
authorEric Wong <e@yhbt.net>
Mon, 10 Aug 2020 02:11:56 +0000 (02:11 +0000)
committerEric Wong <e@yhbt.net>
Mon, 10 Aug 2020 05:56:03 +0000 (05:56 +0000)
commite3944dfcfb3c0d8964d7cd458a9f14bbf503d00f
tree3746ccc10fac1084487f2e766a0c6910038fb893
parent425acc673f5394b0e8472558921db949eac034a5
index+xcpdb: improve SIG{INT,TERM,HUP,PIPE} behavior

-index now invokes ->DESTROY like xcpdb does, which is necessary
to cleanup $INBOX_DIR/msgmap-XXXXXXX files.  We'll also exit
with the expected values for various signals by adding 128
as described in <https://www.tldp.org/LDP/abs/html/exitcodes.html>

-xcpdb now terminates worker processes and xapian-compact(1)
invocations when prematurely killed, too.
lib/PublicInbox/Admin.pm
lib/PublicInbox/Xapcmd.pm