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-08 13:15:24 +0100 |
commit | 923d5567be6fd9969ca74c166f36817ec09305e3 (patch) | |
tree | ddf7ae4ad53066700c9e1ece9f783be83b6a9f7d /lib/bb/server/process.py | |
parent | 7b739a38601b053d9bea4df2c0b44a952ab670c4 (diff) | |
download | bitbake-923d5567be6fd9969ca74c166f36817ec09305e3.tar.gz |
main: Handle BB_SERVER_TIMEOUT = -1 for no server timeout
Make BB_SERVER_TIMEOUT = -1 mean no unload forever.
Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
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 | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/bb/server/process.py b/lib/bb/server/process.py index 5b8a549f9..338c44835 100644 --- a/lib/bb/server/process.py +++ b/lib/bb/server/process.py @@ -180,7 +180,8 @@ class ProcessServer(multiprocessing.Process): if self.timeout is None: print("No timeout, exiting.") self.quit = True - if not self.haveui and self.lastui and self.timeout and (self.lastui + self.timeout) < time.time(): + if not self.timeout == -1.0 and not self.haveui and self.lastui and self.timeout and \ + (self.lastui + self.timeout) < time.time(): print("Server timeout, exiting.") self.quit = True |