Skip to content
This repository has been archived by the owner on Dec 13, 2022. It is now read-only.

Commit

Permalink
atexit
Browse files Browse the repository at this point in the history
  • Loading branch information
spyoungtech committed Jul 13, 2022
1 parent e7391d6 commit 5314667
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions ahk/_async/transport.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ def __init__(self, runargs: list[str]):

async def start(self) -> None:
self._proc = await async_create_process(self.runargs)
atexit.register(kill, self._proc)
return None

async def adrain_stdin(self) -> None: # unasync: remove
Expand Down
1 change: 1 addition & 0 deletions ahk/_sync/transport.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ def __init__(self, runargs: list[str]):

def start(self) -> None:
self._proc = sync_create_process(self.runargs)
atexit.register(kill, self._proc)
return None


Expand Down

0 comments on commit 5314667

Please sign in to comment.