diff options
author | Robert Yang <liezhi.yang@windriver.com> | 2017-07-14 02:52:03 -0700 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2017-07-21 07:20:14 +0100 |
commit | dbdd9010663cd8dcb328e1b6fb40e3a777293bc5 (patch) | |
tree | 78f9362ea24c8cdbff99afae3487b5b4e99313f2 | |
parent | 67ae612ab890965357d24a9bd35610cf813b79ba (diff) | |
download | bitbake-contrib-dbdd9010663cd8dcb328e1b6fb40e3a777293bc5.tar.gz |
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@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r-- | lib/bb/server/process.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/bb/server/process.py b/lib/bb/server/process.py index 6edb0213a..01d9f2f01 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() |