Skip to content

Commit

Permalink
Remove BubblejailHelper.terminator_look_for_command
Browse files Browse the repository at this point in the history
It was not longer used since 207e3e0.
  • Loading branch information
igo95862 committed Jun 9, 2024
1 parent 2bc8d35 commit 3d9ec48
Showing 1 changed file with 1 addition and 14 deletions.
15 changes: 1 addition & 14 deletions src/bubblejail/bubblejail_helper.py
Original file line number Diff line number Diff line change
Expand Up @@ -214,9 +214,6 @@ def __init__(
# Event terminated
self.terminated = Event()

# Terminator variables
self.terminator_look_for_command: str | None = None

self.terminator_pool_timer = reaper_pool_timer
self.termninator_watcher_task: Task[None] | None = None

Expand Down Expand Up @@ -268,22 +265,12 @@ def process_has_child(cls) -> bool:
return False

async def termninator_watcher(self) -> None:
print(
"self.terminator_look_for_command: ",
repr(self.terminator_look_for_command),
file=stderr,
)

while True:
try:
await sleep(self.terminator_pool_timer) # wait timer

if self.terminator_look_for_command is None:
is_time_to_termniate = not self.process_has_child()
else:
is_time_to_termniate = not self.proc_has_process_command(
self.terminator_look_for_command
)
is_time_to_termniate = not self.process_has_child()

if is_time_to_termniate:
print("No children found. Terminating.", file=stderr)
Expand Down

0 comments on commit 3d9ec48

Please sign in to comment.