3
0
Fork 0
mirror of https://github.com/YosysHQ/sby.git synced 2025-04-05 22:14:08 +00:00

Merge pull request #224 from jix/jobserver-poll-fix

jobserver: Only poll non-helper-process jobserver fd when ready to read
This commit is contained in:
Jannis Harder 2022-12-09 16:54:24 +01:00 committed by GitHub
commit 544a1cb369
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -287,7 +287,7 @@ class SbyJobClient:
def poll_fds(self):
if self.helper_process:
return [self.response_read_fd]
elif self.read_fd is not None:
elif self.read_fd is not None and self.has_pending_leases():
return [self.read_fd]
else:
return []