]> git.ozlabs.org Git - petitboot/commit
ui/ncurses: Always cancel autoboot on exit v1.6.5
authorSamuel Mendoza-Jonas <sam@mendozajonas.com>
Thu, 23 Nov 2017 02:25:29 +0000 (13:25 +1100)
committerSamuel Mendoza-Jonas <sam@mendozajonas.com>
Thu, 30 Nov 2017 04:47:50 +0000 (15:47 +1100)
commitf18998f6aac3bfe6785b70056595b0e71dc6fefc
treef628d0b8cf1fcbe14506c28976daa9b3d4b75ec8
parent3af2c04787af928b296079a7e10388fe5958bd8b
ui/ncurses: Always cancel autoboot on exit

If the ncurses UI exits before it has contacted the server it is meant
to fork a process to wait until the connection is made and cancel
autoboot. This prevents users dropping to the shell and then having the
machine boot out from underneath them.

In e1e2ca68 "Spawn shell in exit handler" the UI doesn't actually exit
on "exit", but it isn't listening to server events either while the
shell is active. In this case make sure we still fork to notify the
server.

Signed-off-by: Samuel Mendoza-Jonas <sam@mendozajonas.com>
(cherry picked from commit c916e133367688075f568fed390b625b9325c68b)
ui/ncurses/nc-cui.c