From 803b97a32effce3f0d1be11989406c7b63b86ac3 Mon Sep 17 00:00:00 2001 From: Robert Yang Date: Tue, 8 Aug 2017 02:12:08 -0700 Subject: 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 Signed-off-by: Richard Purdie --- bitbake/lib/bb/main.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'bitbake/lib/bb/main.py') diff --git a/bitbake/lib/bb/main.py b/bitbake/lib/bb/main.py index eba4aefb54..0418d52b84 100755 --- a/bitbake/lib/bb/main.py +++ b/bitbake/lib/bb/main.py @@ -259,8 +259,10 @@ class BitBakeConfigParameters(cookerdata.ConfigParameters): help="The name/address for the bitbake xmlrpc server to bind to.") parser.add_option("-T", "--idle-timeout", type=float, dest="server_timeout", - default=os.environ.get("BB_SERVER_TIMEOUT", 0) or None, - help="Set timeout to unload bitbake server due to inactivity") + default=os.getenv("BB_SERVER_TIMEOUT"), + help="Set timeout to unload bitbake server due to inactivity, " + "set to -1 means no unload, " + "default: Environment variable BB_SERVER_TIMEOUT.") parser.add_option("", "--no-setscene", action="store_true", dest="nosetscene", default=False, -- cgit v1.2.3-54-g00ecf