From: Eric Wong Date: Thu, 14 Oct 2021 13:16:06 +0000 (+0000) Subject: git: cat-file --batch are their own pgrp X-Git-Tag: v1.7.0~149 X-Git-Url: http://www.git.stargrave.org/?a=commitdiff_plain;h=f64fdbc7cc19a34f471abaeada9195597bf7a282;p=public-inbox.git git: cat-file --batch are their own pgrp We want these long-lived processes to die naturally when their parent dies. Hopefully this improves graceful shutdown for -extindex because I'm interrupting a lot of reindexing... --- diff --git a/lib/PublicInbox/Git.pm b/lib/PublicInbox/Git.pm index 37342d7d..e634ca55 100644 --- a/lib/PublicInbox/Git.pm +++ b/lib/PublicInbox/Git.pm @@ -114,7 +114,7 @@ sub _bidi_pipe { return; } pipe(my ($out_r, $out_w)) or $self->fail("pipe failed: $!"); - my $rdr = { 0 => $out_r }; + my $rdr = { 0 => $out_r, pgid => 0 }; my $gd = $self->{git_dir}; if ($gd =~ s!/([^/]+/[^/]+)\z!/!) { $rdr->{-C} = $gd;