From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: X-Spam-Status: No, score=-4.0 required=3.0 tests=ALL_TRUSTED,BAYES_00 shortcircuit=no autolearn=ham autolearn_force=no version=3.4.0 Received: from localhost (dcvr.yhbt.net [127.0.0.1]) by dcvr.yhbt.net (Postfix) with ESMTP id BB41420189 for ; Sat, 18 Jun 2016 21:54:31 +0000 (UTC) From: Eric Wong To: meta@public-inbox.org Subject: [PATCH 0/2] graceful shutdown tweaks Date: Sat, 18 Jun 2016 21:54:28 +0000 Message-Id: <20160618215430.6662-1-e@80x24.org> List-Id: We want to reduce the chance that an inadvertant signal could kill a child we depend while we are gracefully shutting down. Tested via long-running "git clone --mirror" on a 800MB inbox. Unfortunately, we will still have to tweak worker processes a bit and have them avoid receiving signals from the master and instead fake signals via pipes. Eric Wong (2): spawn: try to keep signals blocked in spawned child daemon: be less misleading about graceful shutdown lib/PublicInbox/Daemon.pm | 3 ++- lib/PublicInbox/HTTPD/Async.pm | 3 --- lib/PublicInbox/Spawn.pm | 8 +++++--- lib/PublicInbox/SpawnPP.pm | 7 ++++++- t/spawn.t | 2 +- 5 files changed, 14 insertions(+), 9 deletions(-)