diff options
author | Ross Burton <ross@burtonini.com> | 2021-04-19 11:07:02 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2021-04-20 13:57:47 +0100 |
commit | c93ae1f861208f6d39fd15c84fbcd0e2b54331f5 (patch) | |
tree | 92dc0f50aed7a43c81d856bedd5e7eb5b8600317 /bin | |
parent | ba0fa084ccd2b1ade96425d158fd31e49e42f286 (diff) | |
download | bitbake-contrib-c93ae1f861208f6d39fd15c84fbcd0e2b54331f5.tar.gz |
bitbake-server: ensure server timeout is a float
bitbake-server is spawned by process.py and passes the arguments it is
given to ProcessServer. There's some type confusion here:
bitbake-server is called with a string representation of the timeout,
which may be None. If the timeout is not set, pass 0 instead of None.
Inside bitbake-server a ProcessServer is created which expects the
timeout to be a float not a string, so always float() the value.
[ YOCTO #14350 ]
Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/bitbake-server | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/bitbake-server b/bin/bitbake-server index ffbc7894e..65796be74 100755 --- a/bin/bitbake-server +++ b/bin/bitbake-server @@ -26,7 +26,7 @@ readypipeinfd = int(sys.argv[3]) logfile = sys.argv[4] lockname = sys.argv[5] sockname = sys.argv[6] -timeout = sys.argv[7] +timeout = float(sys.argv[7]) xmlrpcinterface = (sys.argv[8], int(sys.argv[9])) if xmlrpcinterface[0] == "None": xmlrpcinterface = (None, xmlrpcinterface[1]) |