diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2020-08-12 16:32:47 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2020-08-12 21:41:03 +0100 |
commit | d214e55c45f9733b3289138feec0ae3361a4a48b (patch) | |
tree | 44b5d0186ffaacb47ce6e04e6a8bb380598d55ea /lib/bb/server/process.py | |
parent | 9747211cbb45401cbf4dd0409e9c80c648a178c6 (diff) | |
download | bitbake-d214e55c45f9733b3289138feec0ae3361a4a48b.tar.gz |
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.
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'lib/bb/server/process.py')
-rw-r--r-- | lib/bb/server/process.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/bb/server/process.py b/lib/bb/server/process.py index b66fbe0ac..a152b4482 100644 --- a/lib/bb/server/process.py +++ b/lib/bb/server/process.py @@ -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 |