about summary refs log tree commit homepage
path: root/lib/PublicInbox/LeiUp.pm
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2021-09-03 08:54:22 +0000
committerEric Wong <e@80x24.org>2021-09-03 08:55:05 +0000
commita73b85cc93e635e5f8a0520ab0f21177fb8de478 (patch)
tree9394d9858dd62941584cb7482f8586aebec375b9 /lib/PublicInbox/LeiUp.pm
parent0ea8c77b4339398131889afd2405b5e10abd8f57 (diff)
downloadpublic-inbox-a73b85cc93e635e5f8a0520ab0f21177fb8de478.tar.gz
lei: ->child_error less error-prone
I was calling "child_error(1, ...)" in a few places where I meant
to be calling "child_error(1 << 8, ...)" and inadvertantly
triggering SIGHUP in script/lei.  Since giving a zero exit code
to child_error makes no sense, just allow falsy values to
default to 1 << 8.
Diffstat (limited to 'lib/PublicInbox/LeiUp.pm')
-rw-r--r--lib/PublicInbox/LeiUp.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/PublicInbox/LeiUp.pm b/lib/PublicInbox/LeiUp.pm
index 85efd9f5..e1da64aa 100644
--- a/lib/PublicInbox/LeiUp.pm
+++ b/lib/PublicInbox/LeiUp.pm
@@ -59,7 +59,7 @@ sub up1_redispatch {
                 up1($l, $out);
                 $l->qerr("# $out done");
         };
-        $l->child_error(1 << 8, $@) if $@;
+        $l->child_error(0, $@) if $@;
 }
 
 sub lei_up {