summaryrefslogtreecommitdiffstats
path: root/bin/bitbake
diff options
context:
space:
mode:
authorAlexandru DAMIAN <alexandru.damian@intel.com>2013-12-10 18:24:18 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2014-01-07 13:00:29 +0000
commitf43d284e7ae752049711d8215a6020bee6966d45 (patch)
treecab2a8ec2ad126b6efd626a6751a91b81d5744d8 /bin/bitbake
parent34afbdd0fc809b8fb20696aeef3e6a61d6812e16 (diff)
downloadbitbake-contrib-f43d284e7ae752049711d8215a6020bee6966d45.tar.gz
bitbake-contrib-f43d284e7ae752049711d8215a6020bee6966d45.tar.bz2
bitbake-contrib-f43d284e7ae752049711d8215a6020bee6966d45.zip
toaster: add two-stage commit startup logic
Toaster start script lunches multiple process components of the toaster system. This patch adds logic into the startup script to safely fail startup and do proper cleanup on any error that may happen during system start. Bitbake needs to return 0 if it will successfully lunches the server-mode. Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bin/bitbake')
-rwxr-xr-xbin/bitbake1
1 files changed, 1 insertions, 0 deletions
diff --git a/bin/bitbake b/bin/bitbake
index d27fe849fb..cbfd2c97b6 100755
--- a/bin/bitbake
+++ b/bin/bitbake
@@ -343,6 +343,7 @@ def main():
server_connection.terminate()
else:
print("server address: %s, server port: %s" % (server.serverImpl.host, server.serverImpl.port))
+ return 0
return 1