CodinGame / codingame-game-engine

CodinGame Engine
https://www.codingame.com
MIT License
113 stars 41 forks source link

AI process not killed on windows #7

Closed dreignier closed 5 years ago

dreignier commented 6 years ago

On windows, when i play a game, the process of the players AI are not killed. And i end up with zombies. I use C++ AI so the command line to start my AI is just ./myAI.exe

MoMaT commented 6 years ago

It looks like destroy method is not called on players after the game is finished. Also, the CommandLinePlayerAgent should implement the destroy method terminating the started subprocess:

@Override
public void destroy() {
    process.destroy();
}