Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
c0sogi committed Sep 8, 2023
1 parent dc1b907 commit 5b0ff27
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions llama_api/utils/process_pool.py
Original file line number Diff line number Diff line change
Expand Up @@ -398,9 +398,7 @@ def join(self) -> None:
pid = worker.process.pid
if pid:
if sys.platform == "win32":
from ctypes import windll

windll.kernel32.GenerateConsoleCtrlEvent(0, pid)
worker.process.terminate()
else:
kill(pid, SIGINT)

Expand Down

0 comments on commit 5b0ff27

Please sign in to comment.