diff options
author | Robert Yang <liezhi.yang@windriver.com> | 2017-08-08 02:12:08 -0700 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2017-08-09 09:24:56 +0100 |
commit | 803b97a32effce3f0d1be11989406c7b63b86ac3 (patch) | |
tree | 86a8c5300eeaf8c5a64ecfaaa930093660dfc0ce /bitbake/lib/bb/server | |
parent | 11bde5de8343f5b37c65c10a71824cdd57b85f86 (diff) | |
download | poky-803b97a32effce3f0d1be11989406c7b63b86ac3.tar.gz |
bitbake: main: Handle BB_SERVER_TIMEOUT = -1 for no server timeout
Make BB_SERVER_TIMEOUT = -1 mean no unload forever.
(Bitbake rev: 923d5567be6fd9969ca74c166f36817ec09305e3)
Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/bb/server')
-rw-r--r-- | bitbake/lib/bb/server/process.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/bitbake/lib/bb/server/process.py b/bitbake/lib/bb/server/process.py index 5b8a549f94..338c44835e 100644 --- a/bitbake/lib/bb/server/process.py +++ b/bitbake/lib/bb/server/process.py | |||
@@ -180,7 +180,8 @@ class ProcessServer(multiprocessing.Process): | |||
180 | if self.timeout is None: | 180 | if self.timeout is None: |
181 | print("No timeout, exiting.") | 181 | print("No timeout, exiting.") |
182 | self.quit = True | 182 | self.quit = True |
183 | if not self.haveui and self.lastui and self.timeout and (self.lastui + self.timeout) < time.time(): | 183 | if not self.timeout == -1.0 and not self.haveui and self.lastui and self.timeout and \ |
184 | (self.lastui + self.timeout) < time.time(): | ||
184 | print("Server timeout, exiting.") | 185 | print("Server timeout, exiting.") |
185 | self.quit = True | 186 | self.quit = True |
186 | 187 | ||