Skip to contentSkip to conversation

server/process: Add missing exception raise

PATCH New Richard Purdie 1 participant 1 message Feb 5, 2019

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 server/process: Add missing exception raise

The intent of the code was to catch one kind of error, it was actually swallowing all exceptions and looping indefinitely. Fix it to work as intended.

This explains some mystery hangs we've been seeing.

---
 lib/bb/server/process.py | 1 +
 1 file changed, 1 insertion(+)
lib/bb/server/process.py +1 -0
index 28b8eb9b86..80a7875ad9 100644
@@ -499,6 +499,7 @@ def connectProcessServer(sockname, featureset):
                 except IOError as e:
                     if e.errno == errno.EWOULDBLOCK:
                         pass
+                    raise
         finally:
             os.chdir(cwd)
 
Signature · 1 line
2.20.1