summaryrefslogtreecommitdiffstats
path: root/bitbake
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2020-08-12 16:32:47 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2020-08-13 08:07:00 +0100
commit0c91113c077d8efe01a7c9f788c9bdecbc6493bc (patch)
tree5260cdfd4a796b47eabd7c721fe9d11d9a4c59f4 /bitbake
parente5d9d71b47b71f50b0dbb2b06436d89f0c69005f (diff)
downloadpoky-0c91113c077d8efe01a7c9f788c9bdecbc6493bc.tar.gz
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>
Diffstat (limited to 'bitbake')
-rw-r--r--bitbake/lib/bb/server/process.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/bitbake/lib/bb/server/process.py b/bitbake/lib/bb/server/process.py
index b66fbe0acd..a152b44824 100644
--- a/bitbake/lib/bb/server/process.py
+++ b/bitbake/lib/bb/server/process.py
@@ -34,12 +34,11 @@ logger = logging.getLogger('BitBake')
34class ProcessTimeout(SystemExit): 34class ProcessTimeout(SystemExit):
35 pass 35 pass
36 36
37class ProcessServer(multiprocessing.Process): 37class ProcessServer():
38 profile_filename = "profile.log" 38 profile_filename = "profile.log"
39 profile_processed_filename = "profile.log.processed" 39 profile_processed_filename = "profile.log.processed"
40 40
41 def __init__(self, lock, sock, sockname): 41 def __init__(self, lock, sock, sockname):
42 multiprocessing.Process.__init__(self)
43 self.command_channel = False 42 self.command_channel = False
44 self.command_channel_reply = False 43 self.command_channel_reply = False
45 self.quit = False 44 self.quit = False
@@ -483,7 +482,7 @@ class BitBakeServer(object):
483 print("Started bitbake server pid %d" % os.getpid()) 482 print("Started bitbake server pid %d" % os.getpid())
484 sys.stdout.flush() 483 sys.stdout.flush()
485 484
486 server.start() 485 server.run()
487 486
488def connectProcessServer(sockname, featureset): 487def connectProcessServer(sockname, featureset):
489 # Connect to socket 488 # Connect to socket