Ash doesn't clear bb_got_signal for noninteractive shell
Seo Suchan
tjtncks at gmail.com
Fri Jun 12 02:31:01 UTC 2026
someone reported about bug in ash signal handling, which make long
running script like mwan3 and acme.sh to hang to openwrt:
https://github.com/openwrt/openwrt/issues/23745
from what I read it'd because bb_go_signal can set in noninteractive
shell but only clears in interactive shell, make noninteractive shell to
infinite loog to resolve already handled signal
Issue reporter suggests to clear bb_got_signal at start of do_trap()
after it cleared pending_sig, and he claims to it solved it, but I
didn't test if it would make new problem like clearling it too early
|--- a/shell/ash.c +++ b/shell/ash.c @@ -9608,6 +9608,9 @@ savestatus =
status; } pending_sig = 0; +#if ENABLE_FEATURE_EDITING + bb_got_signal =
0; +#endif barrier(); TRACE(("dotrap entered\n"));|
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.busybox.net/pipermail/busybox/attachments/20260612/d4db728e/attachment.htm>
More information about the busybox
mailing list