diff options
author | Paul Eggleton <paul.eggleton@linux.intel.com> | 2016-12-13 20:07:05 +1300 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2016-12-14 09:54:48 +0000 |
commit | 74db369c46043116359101cab70486afd82372c0 (patch) | |
tree | 85aeff0cf793c1ef9996a668d8de08909a7896df /lib/bb/cooker.py | |
parent | a3edc3eefa2d03c4ad5d12187b32fa4dc495082a (diff) | |
download | bitbake-contrib-74db369c46043116359101cab70486afd82372c0.tar.gz |
command: provide a means to shut down from the client in memres mode
In memory resident mode we don't really want to actually shut down since
it's only the client going away.
Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'lib/bb/cooker.py')
-rw-r--r-- | lib/bb/cooker.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/bb/cooker.py b/lib/bb/cooker.py index 5e5708ee2..2614c4485 100644 --- a/lib/bb/cooker.py +++ b/lib/bb/cooker.py @@ -1725,6 +1725,13 @@ class BBCooker: def reset(self): self.initConfigurationData() + def clientComplete(self): + """Called when the client is done using the server""" + if self.configuration.server_only: + self.finishcommand() + else: + self.shutdown(True) + def lockBitbake(self): if not hasattr(self, 'lock'): self.lock = None |