]> git.ozlabs.org Git - petitboot/commit
ui/ncurses: Spin child to ensure autoboot cancelled on exit
authorSamuel Mendoza-Jonas <sam@mendozajonas.com>
Wed, 23 Nov 2016 00:48:07 +0000 (11:48 +1100)
committerSamuel Mendoza-Jonas <sam@mendozajonas.com>
Thu, 24 Nov 2016 02:30:11 +0000 (13:30 +1100)
commit69078e89091998d40ffac03b0d57511d3531b2f2
tree1ebaf4d0ba8ebd27db3f8caedcf55af062a58ac0
parenta23c3271090ddb9004678b8ede3b2ba8f83d7acf
ui/ncurses: Spin child to ensure autoboot cancelled on exit

If the client is not connected to the server instance when exiting, fork
and have the child process spin until the server is available and can be
told to cancel autoboot. This prevents the scenario of a user exiting
the UI and having the server continue to autoboot while they are using
the command line.

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