Skip to contentSkip to conversation

bitbake-server: ensure server timeout is a float

PATCH Superseded Ross Burton 1 participant 1 message Apr 16, 2021

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 bitbake-server: ensure server timeout is a float

bitbake-server is spawned and passes the arguments it is given to ProcessServer. However, ProcessServer expects the server timeout to be a float and not a string, so convert before passing.

[ YOCTO #14350 ]

---
 bitbake/bin/bitbake-server | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
bitbake/bin/bitbake-server +1 -1
index ffbc7894ef7..65796be7473 100755
@@ -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])
Signature · 1 line
2.25.1