summaryrefslogtreecommitdiffstats
path: root/bitbake/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:03:05 +0000
commit6c294f0a2ed6d0182bf85708a4fae240c260c0e5 (patch)
tree6f2fb33777219deabb8ffecec0c1737eb515205a /bitbake/bin/bitbake
parent18d486c58a55d91c56678d5355958d7a2c7fd1e9 (diff)
downloadpoky-6c294f0a2ed6d0182bf85708a4fae240c260c0e5.tar.gz
bitbake: 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. (Bitbake rev: f43d284e7ae752049711d8215a6020bee6966d45) Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/bin/bitbake')
-rwxr-xr-xbitbake/bin/bitbake1
1 files changed, 1 insertions, 0 deletions
diff --git a/bitbake/bin/bitbake b/bitbake/bin/bitbake
index d27fe849fb..cbfd2c97b6 100755
--- a/bitbake/bin/bitbake
+++ b/bitbake/bin/bitbake
@@ -343,6 +343,7 @@ def main():
343 server_connection.terminate() 343 server_connection.terminate()
344 else: 344 else:
345 print("server address: %s, server port: %s" % (server.serverImpl.host, server.serverImpl.port)) 345 print("server address: %s, server port: %s" % (server.serverImpl.host, server.serverImpl.port))
346 return 0
346 347
347 return 1 348 return 1
348 349