Skip to content

Commit ea3d415

Browse files
authored
Merge pull request #57 from NA-Wen/killtestprocess_windows
make sure test process can be killed on windows
2 parents 1245025 + 0ad26e3 commit ea3d415

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

chatdev/chat_env.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,8 @@ def exist_bugs(self) -> tuple[bool, str]:
111111
os.killpg(os.getpgid(process.pid), signal.SIGTERM)
112112
else:
113113
os.kill(process.pid, signal.SIGTERM)
114+
if process.poll() is None:
115+
os.kill(process.pid,signal.CTRL_BREAK_EVENT)
114116

115117
if return_code == 0:
116118
return False, success_info

0 commit comments

Comments
 (0)