]> git.ozlabs.org Git - petitboot/commit
ui/ncurses: only cancel default boot on valid key events
authorJeremy Kerr <jk@ozlabs.org>
Tue, 22 Apr 2014 02:41:59 +0000 (10:41 +0800)
committerJeremy Kerr <jk@ozlabs.org>
Tue, 22 Apr 2014 02:44:09 +0000 (10:44 +0800)
commit85421290c797c59320bf1e9f076f46195115ab92
treee911c0bcc99961fbc5decd52d5a0588691613e22
parentb6ee414890fcd582a96f4d89e648cff5dacb1cb9
ui/ncurses: only cancel default boot on valid key events

We're seeing occasionaly failures to autoboot due to supirious key
events (getch() returing -1) on an IPMI console.

This change modifies the process_key logic to only abort the default if
we see a valid key event.

Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
ui/ncurses/nc-cui.c