* [PATCH] lei: fail_handler: use correct exit code
@ 2021-02-15 7:43 Eric Wong
0 siblings, 0 replies; only message in thread
From: Eric Wong @ 2021-02-15 7:43 UTC (permalink / raw)
To: meta
We were shifting in the wrong direction :x
---
lib/PublicInbox/LEI.pm | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lib/PublicInbox/LEI.pm b/lib/PublicInbox/LEI.pm
index eb5a646e..aa14ca6f 100644
--- a/lib/PublicInbox/LEI.pm
+++ b/lib/PublicInbox/LEI.pm
@@ -369,7 +369,7 @@ sub fail_handler ($;$$) {
$wq->wq_wait_old(undef, $lei) if $wq->wq_kill_old; # lei-daemon
}
close($io) if $io; # needed to avoid warnings on SIGPIPE
- $lei->x_it($code // (1 >> 8));
+ x_it($lei, $code // (1 << 8));
}
sub sigpipe_handler { # handles SIGPIPE from @WQ_KEYS workers
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2021-02-15 7:43 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-02-15 7:43 [PATCH] lei: fail_handler: use correct exit code Eric Wong
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).