]> git.kernelconcepts.de Git - karo-tx-uboot.git/commit
menu: Return an error code if Ctrl-C is pressed
authorTuomas Tynkkynen <tuomas.tynkkynen@iki.fi>
Thu, 7 May 2015 18:29:19 +0000 (21:29 +0300)
committerLothar Waßmann <LW@KARO-electronics.de>
Tue, 8 Sep 2015 20:46:07 +0000 (22:46 +0200)
commit7f7e94ba9b34b281eb049791fbae9a6f2cb8cf7d
treec3a65775f521b296e41e1dce94671cce635512ba
parentb6b9df46859cd87949a04a28667ad97944002628
menu: Return an error code if Ctrl-C is pressed

Previously, if the menu activated by the 'sysboot' command gets
interrupted by a Ctrl-C, the behaviour is as if the menu timeout was
reached - i.e. boot the default menu entry. This patch fixes that
so a Ctrl-C now terminates the command as the user would expect.

Signed-off-by: Tuomas Tynkkynen <tuomas.tynkkynen@iki.fi>
Reviewed-by: Simon Glass <sjg@chromium.org>
common/menu.c