From d3b7f2ead56b8d9f3df6bddc0f6b9749dcd562cf Mon Sep 17 00:00:00 2001 From: Richard Purdie Date: Fri, 14 Dec 2018 17:49:16 +0000 Subject: bitbake: server/process: Ensure socket has a timeout set We're seeing hangs in oe-selftest where server startup and shutdown are racing. The assumption was a connect would timeout however no timeout is set which can leave processes hanging. Set a short timeout for the connection to avoid this. (Bitbake rev: e53c1009356cc49c57d3b9af1e3dda6927acd78d) Signed-off-by: Richard Purdie --- bitbake/lib/bb/server/process.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/bitbake/lib/bb/server/process.py b/bitbake/lib/bb/server/process.py index a76b0a50c7..0854d48091 100644 --- a/bitbake/lib/bb/server/process.py +++ b/bitbake/lib/bb/server/process.py @@ -473,6 +473,8 @@ def connectProcessServer(sockname, featureset): readfd = writefd = readfd1 = writefd1 = readfd2 = writefd2 = None eq = command_chan_recv = command_chan = None + sock.settimeout(2) + try: try: os.chdir(os.path.dirname(sockname)) -- cgit v1.2.3-54-g00ecf