diff options
Diffstat (limited to 'bitbake/bin')
-rwxr-xr-x | bitbake/bin/bitbake | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/bitbake/bin/bitbake b/bitbake/bin/bitbake index cca2b8d29b..a0a2baa4bc 100755 --- a/bitbake/bin/bitbake +++ b/bitbake/bin/bitbake | |||
@@ -302,6 +302,7 @@ def main(): | |||
302 | # we start a stub server that is actually a XMLRPClient that connects to a real server | 302 | # we start a stub server that is actually a XMLRPClient that connects to a real server |
303 | server = servermodule.BitBakeXMLRPCClient(configParams.observe_only) | 303 | server = servermodule.BitBakeXMLRPCClient(configParams.observe_only) |
304 | server.saveConnectionDetails(configParams.remote_server) | 304 | server.saveConnectionDetails(configParams.remote_server) |
305 | server.saveConnectionConfigParams(configParams) | ||
305 | 306 | ||
306 | if not configParams.server_only: | 307 | if not configParams.server_only: |
307 | # Collect the feature set for the UI | 308 | # Collect the feature set for the UI |
@@ -312,11 +313,20 @@ def main(): | |||
312 | server_connection = server.establishConnection(featureset) | 313 | server_connection = server.establishConnection(featureset) |
313 | except: | 314 | except: |
314 | sys.exit(1) | 315 | sys.exit(1) |
316 | if not server_connection: | ||
317 | sys.exit(1) | ||
315 | server_connection.terminate() | 318 | server_connection.terminate() |
316 | sys.exit(0) | 319 | sys.exit(0) |
317 | 320 | ||
318 | # Setup a connection to the server (cooker) | 321 | # Setup a connection to the server (cooker) |
319 | server_connection = server.establishConnection(featureset) | 322 | server_connection = server.establishConnection(featureset) |
323 | if not server_connection: | ||
324 | if configParams.kill_server: | ||
325 | bb.fatal("Server already killed") | ||
326 | configParams.bind = configParams.remote_server | ||
327 | start_server(servermodule, configParams, configuration) | ||
328 | bb.event.ui_queue = [] | ||
329 | server_connection = server.establishConnection(featureset) | ||
320 | 330 | ||
321 | # Restore the environment in case the UI needs it | 331 | # Restore the environment in case the UI needs it |
322 | for k in cleanedvars: | 332 | for k in cleanedvars: |