diff options
author | Eric Wong <e@80x24.org> | 2021-04-28 07:52:02 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2021-04-28 19:30:58 +0000 |
commit | eee88c0967d741686e1d14a01bc34c55167213e4 (patch) | |
tree | 9876873bc9550c9327b1c1c35494299033c1d03f /script | |
parent | 63e2751ace2dd35a661620a9ad30d6c92948a009 (diff) | |
download | public-inbox-eee88c0967d741686e1d14a01bc34c55167213e4.tar.gz |
This lets us share more code and reduces cognitive overhead when it comes to picking names (because {lsss} was ridiculous). We'll need to ensure the first error set in lei is the actual error we exit with, otherwise things can get confusing and errors may get lost.
Diffstat (limited to 'script')
-rwxr-xr-x | script/lei | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -116,10 +116,10 @@ Falling back to (slow) one-shot mode } elsif ($buf eq '-WINCH') { kill($buf, @parent); # for MUA } elsif ($buf =~ /\Ax_it ([0-9]+)\z/) { - $x_it_code = $1 + 0; + $x_it_code ||= $1 + 0; last; } elsif ($buf =~ /\Achild_error ([0-9]+)\z/) { - $x_it_code = $1 + 0; + $x_it_code ||= $1 + 0; } else { $sigchld->(); die $buf; |