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)
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>

No differences found