summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/bb/server
diff options
context:
space:
mode:
authorEd Bartosh <ed.bartosh@linux.intel.com>2016-03-09 10:07:40 +0200
committerRichard Purdie <richard.purdie@linuxfoundation.org>2016-03-09 22:45:16 +0000
commitd405f97af32d82b1b82915fa0b7038d4ac79f410 (patch)
tree8e2bca9208bba3e80c9202fe79c41709c163d403 /bitbake/lib/bb/server
parentc50bdb300bb2d6a2bb406688bd9e86d80f2a8873 (diff)
downloadpoky-d405f97af32d82b1b82915fa0b7038d4ac79f410.tar.gz
bitbake: xmlrpc: fix bug in setting XMLRPCServer.single_use
XMLRPCServer.single_use attribute was always set to False. This caused xmlrpc server to keep running after build is done as BitBakeServerCommands.removeClient only shuts down server if its single_use attribute is set to True. (Bitbake rev: 0a60b0928a0a746a60d2c2f294ff1903963c7086) Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/bb/server')
-rw-r--r--bitbake/lib/bb/server/xmlrpc.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/bitbake/lib/bb/server/xmlrpc.py b/bitbake/lib/bb/server/xmlrpc.py
index 1ceca51e0a..7528138740 100644
--- a/bitbake/lib/bb/server/xmlrpc.py
+++ b/bitbake/lib/bb/server/xmlrpc.py
@@ -191,8 +191,7 @@ class XMLRPCServer(SimpleXMLRPCServer, BaseImplServer):
191 Constructor 191 Constructor
192 """ 192 """
193 BaseImplServer.__init__(self) 193 BaseImplServer.__init__(self)
194 if (interface[1] == 0): # anonymous port, not getting reused 194 self.single_use = interface[1] == 0 # anonymous port, not getting reused
195 self.single_use = True
196 # Use auto port configuration 195 # Use auto port configuration
197 if (interface[1] == -1): 196 if (interface[1] == -1):
198 interface = (interface[0], 0) 197 interface = (interface[0], 0)
@@ -205,7 +204,6 @@ class XMLRPCServer(SimpleXMLRPCServer, BaseImplServer):
205 self.commands = BitBakeServerCommands(self) 204 self.commands = BitBakeServerCommands(self)
206 self.autoregister_all_functions(self.commands, "") 205 self.autoregister_all_functions(self.commands, "")
207 self.interface = interface 206 self.interface = interface
208 self.single_use = False
209 207
210 def addcooker(self, cooker): 208 def addcooker(self, cooker):
211 BaseImplServer.addcooker(self, cooker) 209 BaseImplServer.addcooker(self, cooker)