summaryrefslogtreecommitdiff
path: root/test/service.py
diff options
context:
space:
mode:
Diffstat (limited to 'test/service.py')
-rw-r--r--test/service.py8
1 files changed, 7 insertions, 1 deletions
diff --git a/test/service.py b/test/service.py
index 55cc739..8895a10 100644
--- a/test/service.py
+++ b/test/service.py
@@ -72,7 +72,13 @@ class SpawnedService(threading.Thread):
def run(self):
self._spawn()
while True:
- (rds, _, _) = select.select([self.child.stdout, self.child.stderr], [], [], 1)
+ try:
+ (rds, _, _) = select.select([self.child.stdout, self.child.stderr], [], [], 1)
+ except select.error as ex:
+ if ex.args[0] == 4:
+ continue
+ else:
+ raise
if self.child.stdout in rds:
line = self.child.stdout.readline()