From eee88c0967d741686e1d14a01bc34c55167213e4 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Wed, 28 Apr 2021 07:52:02 +0000 Subject: lei: simple WQ workers use {wq1} field 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. --- script/lei | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'script') diff --git a/script/lei b/script/lei index db302422..90a93839 100755 --- a/script/lei +++ b/script/lei @@ -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; -- cgit v1.2.3-24-ge0c7