summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/bb/server
diff options
context:
space:
mode:
authorRobert Yang <liezhi.yang@windriver.com>2017-07-14 02:52:03 -0700
committerRichard Purdie <richard.purdie@linuxfoundation.org>2017-07-21 08:41:11 +0100
commit47ce5bb034350795ad13af4ba1a3457c39506e37 (patch)
tree5f92a663753ad82349d49e79059bfe6064718b8c /bitbake/lib/bb/server
parent1cfefc8b0f5337c256597c4312517227124dd2e6 (diff)
downloadpoky-47ce5bb034350795ad13af4ba1a3457c39506e37.tar.gz
bitbake: server/process.py: fix self.bitbake_lock.write()
There is no global var "configuration", so the old code hang at self.bitbake_lock.write(), and nothing wrote to bitbake.lock. I didn't figure out why it hang (but not print errors). Reproducer: $ bitbake -B localhost:-1 world -k Check bitbake.log, there was nothing, now fixed. (Bitbake rev: dbdd9010663cd8dcb328e1b6fb40e3a777293bc5) Signed-off-by: Robert Yang <liezhi.yang@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/bb/server')
-rw-r--r--bitbake/lib/bb/server/process.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/bitbake/lib/bb/server/process.py b/bitbake/lib/bb/server/process.py
index 6edb0213ad..01d9f2f014 100644
--- a/bitbake/lib/bb/server/process.py
+++ b/bitbake/lib/bb/server/process.py
@@ -95,8 +95,8 @@ class ProcessServer(multiprocessing.Process):
95 try: 95 try:
96 self.bitbake_lock.seek(0) 96 self.bitbake_lock.seek(0)
97 self.bitbake_lock.truncate() 97 self.bitbake_lock.truncate()
98 if self.xmlrpcinterface[0]: 98 if self.xmlrpc:
99 self.bitbake_lock.write("%s %s:%s\n" % (os.getpid(), configuration.interface[0], configuration.interface[1])) 99 self.bitbake_lock.write("%s %s:%s\n" % (os.getpid(), self.xmlrpc.host, self.xmlrpc.port))
100 else: 100 else:
101 self.bitbake_lock.write("%s\n" % (os.getpid())) 101 self.bitbake_lock.write("%s\n" % (os.getpid()))
102 self.bitbake_lock.flush() 102 self.bitbake_lock.flush()