summaryrefslogtreecommitdiffstats
path: root/bitbake
diff options
context:
space:
mode:
authorRobert Yang <liezhi.yang@windriver.com>2017-07-14 02:58:12 -0700
committerRichard Purdie <richard.purdie@linuxfoundation.org>2017-07-21 08:41:11 +0100
commit38af7fef512601423c231ae61959b12ec54575cc (patch)
treee4d444a0111eb5ad9dc34792541a28574604701a /bitbake
parent47ce5bb034350795ad13af4ba1a3457c39506e37 (diff)
downloadpoky-38af7fef512601423c231ae61959b12ec54575cc.tar.gz
bitbake: 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. (Bitbake rev: c4d5c3dab5b35f3c6713efad1c8a23229ce4e56b) Signed-off-by: Robert Yang <liezhi.yang@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake')
-rwxr-xr-xbitbake/lib/bb/main.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/bitbake/lib/bb/main.py b/bitbake/lib/bb/main.py
index 1edf56f41b..84fe904efb 100755
--- a/bitbake/lib/bb/main.py
+++ b/bitbake/lib/bb/main.py
@@ -439,7 +439,7 @@ def setup_bitbake(configParams, configuration, extrafeatures=None, setup_logging
439 raise bb.server.process.ProcessTimeout("Bitbake still shutting down as socket exists but no lock?") 439 raise bb.server.process.ProcessTimeout("Bitbake still shutting down as socket exists but no lock?")
440 if not configParams.server_only: 440 if not configParams.server_only:
441 server_connection = bb.server.process.connectProcessServer(sockname, featureset) 441 server_connection = bb.server.process.connectProcessServer(sockname, featureset)
442 if server_connection: 442 if server_connection or configParams.server_only:
443 break 443 break
444 except (Exception, bb.server.process.ProcessTimeout) as e: 444 except (Exception, bb.server.process.ProcessTimeout) as e:
445 if not retries: 445 if not retries: