[RFC PATCH 12/28] cli: lil: Check for ctrl-c
Simon Glass
sjg at chromium.org
Mon Jul 5 17:29:51 CEST 2021
On Thu, 1 Jul 2021 at 00:16, Sean Anderson <seanga2 at gmail.com> wrote:
>
> Check for ctrl-c in lil_parse. This works out to around every time a
> function or command is called. We also check at the beginning of
> lil_eval_expr so that constructs like
>
> while {1} {}
>
> get interrupted. Since there are no non-trivial commands in that example,
> lil_parse never gets to its ctrlc check. However, we do need to evaluate
> the loop expression, so that's a good place to put a check.
>
> Signed-off-by: Sean Anderson <seanga2 at gmail.com>
> ---
>
> common/cli_lil.c | 11 +++++++++++
> 1 file changed, 11 insertions(+)
Reviewed-by: Simon Glass <sjg at chromium.org>
More information about the U-Boot
mailing list