]> code.ossystems Code Review - openembedded-core.git/commit
xserver-nodm: Support reboot from inside X
authorRicardo Ribalda Delgado <ricardo.ribalda@gmail.com>
Wed, 20 May 2015 18:44:18 +0000 (13:44 -0500)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Sat, 30 May 2015 21:25:12 +0000 (22:25 +0100)
commit19eaf4a59f4545e049f525d0b0446a9c08d18f0f
tree4f6aab5376aa691a7c8c3df7fdbe8e1841762b53
parentb7c5e813011f30b33702d8d2fbff3bdbd61be742
xserver-nodm: Support reboot from inside X

If reboot was called from inside the Xserver there could happen a race
condition where chvt would never end, and therefore the whole system was
stalled.

The user could not recover the system by ssh the machine or using the
keyboard.

Running chvt in background fixes the issue.

Also move sleep 1s inside stop to give time for killproc xinit for
fix issue when chvt 1 don't work because X server is still running.

Signed-off-by: Ricardo Ribalda Delgado <ricardo.ribalda@gmail.com>
Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-graphics/x11-common/xserver-nodm-init/xserver-nodm