]> git.ozlabs.org Git - petitboot/commitdiff
ui/ncurses: Always cancel autoboot on exit
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 00:57:21 +0000 (11:57 +1100)
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>

No differences found