about summary refs log tree commit homepage
path: root/script
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2021-09-11 00:19:15 +0000
committerEric Wong <e@80x24.org>2021-09-11 00:24:14 +0000
commita0f0df6e66e6613805fa40c95b9758e4702e248a (patch)
tree4917269ae23efb43e822f82b49eeb515c6b026fb /script
parent47ad2954fa34cdc75fa5c56f38f352d77afba553 (diff)
downloadpublic-inbox-a0f0df6e66e6613805fa40c95b9758e4702e248a.tar.gz
lei shouldn't become unusable if a config file is invalid.
Instead, show the "git config" stderr and attempt to continue
gracefully.

Reported-by: Konstantin Ryabitsev <konstantin@linuxfoundation.org>
Link: https://public-inbox.org/meta/20210910141157.6u5adehpx7wftkor@meerkat.local/
Diffstat (limited to 'script')
-rwxr-xr-xscript/lei2
1 files changed, 2 insertions, 0 deletions
diff --git a/script/lei b/script/lei
index 99d94b4e..2d84487a 100755
--- a/script/lei
+++ b/script/lei
@@ -127,6 +127,8 @@ while (1) {
                 last;
         } elsif ($buf =~ /\Achild_error ([0-9]+)\z/) {
                 $x_it_code ||= $1 + 0;
+        } elsif ($buf eq 'wait') {
+                $sigchld->();
         } else {
                 $sigchld->();
                 die $buf;