mirror of
https://github.com/OpenBMB/ChatDev.git
synced 2024-11-07 18:40:13 +03:00
make sure test process can be killed on windows
This commit is contained in:
parent
124502530c
commit
0ad26e350d
@ -111,6 +111,8 @@ class ChatEnv:
|
||||
os.killpg(os.getpgid(process.pid), signal.SIGTERM)
|
||||
else:
|
||||
os.kill(process.pid, signal.SIGTERM)
|
||||
if process.poll() is None:
|
||||
os.kill(process.pid,signal.CTRL_BREAK_EVENT)
|
||||
|
||||
if return_code == 0:
|
||||
return False, success_info
|
||||
|
Loading…
Reference in New Issue
Block a user