Blizzard / s2client-api

StarCraft II Client - C++ library supported on Windows, Linux and Mac designed for building scripted bots and research using the SC2API.
MIT License
1.66k stars 282 forks source link

Prevent TerminateProcess(0) #290

Open Archiatrus opened 5 years ago

Archiatrus commented 5 years ago

In a proxy setting the process_id usually referring to the game instances is default initialized to 0. On Linux based systems, during the destruction of the sc2::coordinator, TerminateProcess(0) will kill all processes within the bot's processing group, including the bot itself. This is probably not intended behavior and can have unwanted side effects.