[oe-commits] [bitbake] 01/16: server/process.py: fix self.bitbake_lock.write()
git at git.openembedded.org
git at git.openembedded.org
Wed Jul 19 10:43:45 UTC 2017
This is an automated email from the git hooks/post-receive script.
rpurdie pushed a commit to branch master-next
in repository bitbake.
commit b5165443fa1387269063e86d2315071108a7bd68
Author: Robert Yang <liezhi.yang at windriver.com>
AuthorDate: Fri Jul 14 02:52:03 2017 -0700
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.
Signed-off-by: Robert Yang <liezhi.yang at windriver.com>
Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>
---
lib/bb/server/process.py | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/lib/bb/server/process.py b/lib/bb/server/process.py
index a1d9adc..23e033a 100644
--- a/lib/bb/server/process.py
+++ b/lib/bb/server/process.py
@@ -95,8 +95,8 @@ class ProcessServer(multiprocessing.Process):
try:
self.bitbake_lock.seek(0)
self.bitbake_lock.truncate()
- if self.xmlrpcinterface[0]:
- self.bitbake_lock.write("%s %s:%s\n" % (os.getpid(), configuration.interface[0], configuration.interface[1]))
+ if self.xmlrpc:
+ self.bitbake_lock.write("%s %s:%s\n" % (os.getpid(), self.xmlrpc.host, self.xmlrpc.port))
else:
self.bitbake_lock.write("%s\n" % (os.getpid()))
self.bitbake_lock.flush()
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the Openembedded-commits
mailing list