]> git.ipfire.org Git - people/ms/u-boot.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)
committerTom Rini <trini@konsulko.com>
Wed, 27 May 2015 17:35:54 +0000 (13:35 -0400)
commit9b081d8893c4fce3451e3a5a4d5ac5a9960874ae
tree2897e65ab1e353a66bf4a5cb7d2ab42f6db0674f
parent0ece6b50f153fe2d349f4d26b18de4b0a3273537
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