bitbake: cooker/command: Add error state for the server and use for pre_serve errors
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Sun, 6 Oct 2013 12:42:39 +0000 (13:42 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 14 Oct 2013 15:59:12 +0000 (16:59 +0100)
commitaf1041a6af4a244fa9bbcddb17716489b6119337
tree2926b7e11b0968ad0d6e0cb7464defbc5ae30671
parentc93f050cd28e5aea1e8a2f9fb82f282f5dfa27e2
bitbake: cooker/command: Add error state for the server and use for pre_serve errors

Currently if errors occur when starting the PR service, there is a race that
occurs since the UI runs various commands including starting builds before
processing the CookerExit(). By adding the error state and refusing to run
async commands in this mode, builds are prevented from starting and the
UI reaches the exit code with the system shutting down cleanly.

(Bitbake rev: 42fa34142ea685f91115a551e74416ca28ef1c91)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
bitbake/lib/bb/command.py
bitbake/lib/bb/cooker.py