bitbake: server/process: Remove pointless process forking

We already call bb.daemonize.createDaemon() in BitBakeServer so the extra
multiprocessing.Process() appears to be totally unneeded and just an extra layer
of forking which confuses things. Remove it.

(Bitbake rev: d214e55c45f9733b3289138feec0ae3361a4a48b)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Richard Purdie
2020-08-12 16:32:47 +01:00
parent e5d9d71b47
commit 0c91113c07

View File

@@ -34,12 +34,11 @@ logger = logging.getLogger('BitBake')
class ProcessTimeout(SystemExit):
pass
class ProcessServer(multiprocessing.Process):
class ProcessServer():
profile_filename = "profile.log"
profile_processed_filename = "profile.log.processed"
def __init__(self, lock, sock, sockname):
multiprocessing.Process.__init__(self)
self.command_channel = False
self.command_channel_reply = False
self.quit = False
@@ -483,7 +482,7 @@ class BitBakeServer(object):
print("Started bitbake server pid %d" % os.getpid())
sys.stdout.flush()
server.start()
server.run()
def connectProcessServer(sockname, featureset):
# Connect to socket