From 64e5b12bca9148e74c4dca5f090decc21e12b879 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Mon, 5 Apr 2021 08:36:57 +0000 Subject: [PATCH 1/1] script/lei: waitpid for git-credential and pager We need to ensure we reap things we spawn. --- script/lei | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/script/lei b/script/lei index 78a7dab9..76217ab9 100755 --- a/script/lei +++ b/script/lei @@ -52,7 +52,11 @@ my $exec_cmd = sub { @parent = ($parent); return; # continue $recv_cmd in background } - $do_exec->() if !scalar(@$fds); # MUA reuses all FDs + if (scalar(@$fds)) { + $pids{$pid} = undef; + } else { + $do_exec->(); # MUA reuses all FDs + } }; if ($send_cmd && eval { -- 2.44.0