diff options
author | Eric Wong <e@80x24.org> | 2021-09-03 08:54:22 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2021-09-03 08:55:05 +0000 |
commit | a73b85cc93e635e5f8a0520ab0f21177fb8de478 (patch) | |
tree | 9394d9858dd62941584cb7482f8586aebec375b9 /lib/PublicInbox/LeiUp.pm | |
parent | 0ea8c77b4339398131889afd2405b5e10abd8f57 (diff) | |
download | public-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.pm | 2 |
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 { |