Rust bots hang in background after Ctrl+C (Linux, SIGINT)


Hello, everyone!

I suffer from the fact that after the interruption of the halite process with Ctrl+C bots remain in a neglected state (they are waiting for input) and I need to kill them separately. So, I’m wondering if there is any way to interrupt halite process together with bots processes?



The only way I found so far is to run following:
$ killall -9 my_bot1 my_bot2 ... ; ./


This is a bug. Signal handling in the game engine is subpar to say the least.

I also don’t like the fact the game engine uses SIGKILL to terminate the bots instead of trying SIGTERM first. I would like the bots to be able to log some final summary of the game before being terminated and SIGKILL does not allow that. Some starter kits even include signal handling -