Skip to content

Commit

Permalink
minor fix for unbound variables
Browse files Browse the repository at this point in the history
  • Loading branch information
lilydjwg committed Apr 4, 2024
1 parent 0454bb9 commit dd15e22
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lilac2/systemd.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ def _poll_cmd(pid: int) -> Generator[None, None, None]:
except OSError as e:
if e.errno == 22:
return
raise

poll = select.poll()
poll.register(pidfd, select.POLLIN)
Expand All @@ -98,6 +99,7 @@ def poll_rusage(name: str, deadline: float) -> tuple[RUsage, bool]:
done_state = ['exited', 'failed']

try:
cgroup = ''
time_start = time.monotonic()
while True:
pid, cgroup, state = _get_service_info(name)
Expand Down

0 comments on commit dd15e22

Please sign in to comment.