summaryrefslogtreecommitdiffstats
path: root/ui/ncurses/generic-main.c
diff options
context:
space:
mode:
authorSamuel Mendoza-Jonas <sam@mendozajonas.com>2016-11-23 11:48:07 +1100
committerSamuel Mendoza-Jonas <sam@mendozajonas.com>2016-11-24 13:30:11 +1100
commit69078e89091998d40ffac03b0d57511d3531b2f2 (patch)
tree1ebaf4d0ba8ebd27db3f8caedcf55af062a58ac0 /ui/ncurses/generic-main.c
parenta23c3271090ddb9004678b8ede3b2ba8f83d7acf (diff)
downloadpetitboot-69078e89091998d40ffac03b0d57511d3531b2f2.zip
petitboot-69078e89091998d40ffac03b0d57511d3531b2f2.tar.gz
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)
Diffstat (limited to 'ui/ncurses/generic-main.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud