diff options
author | Robert Yang <liezhi.yang@windriver.com> | 2017-07-14 02:58:12 -0700 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2017-07-21 07:20:14 +0100 |
commit | c4d5c3dab5b35f3c6713efad1c8a23229ce4e56b (patch) | |
tree | e793e8d54b19c51c3140cf95cad149351a734bdc | |
parent | dbdd9010663cd8dcb328e1b6fb40e3a777293bc5 (diff) | |
download | bitbake-contrib-c4d5c3dab5b35f3c6713efad1c8a23229ce4e56b.tar.gz |
bb/main.py: fix infinite loop for --server-only
Fixed:
$ bitbake --server-only -B localhost:-1
Infinite loop
Reconnecting to bitbake server...
[snip]
Break the loop when server-only can fix the problem.
Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rwxr-xr-x | lib/bb/main.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/bb/main.py b/lib/bb/main.py index 1edf56f41..84fe904ef 100755 --- a/lib/bb/main.py +++ b/lib/bb/main.py @@ -439,7 +439,7 @@ def setup_bitbake(configParams, configuration, extrafeatures=None, setup_logging raise bb.server.process.ProcessTimeout("Bitbake still shutting down as socket exists but no lock?") if not configParams.server_only: server_connection = bb.server.process.connectProcessServer(sockname, featureset) - if server_connection: + if server_connection or configParams.server_only: break except (Exception, bb.server.process.ProcessTimeout) as e: if not retries: |