Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ctrl-C leaves sleeping processes #165

Open
AdamStelmaszczyk opened this issue Nov 28, 2018 · 3 comments
Open

Ctrl-C leaves sleeping processes #165

AdamStelmaszczyk opened this issue Nov 28, 2018 · 3 comments

Comments

@AdamStelmaszczyk
Copy link

AdamStelmaszczyk commented Nov 28, 2018

On *nix, run a game with e.g. 4 C++ bots (./halite MyBot MyBot ...) and Ctrl-C during the game. It will leave 4 sleeping processes. While developing a bot this can easily lead to thousands of sleeping processes. Engine should give them a chance to shut down.

@AdamStelmaszczyk
Copy link
Author

Possibly related to #99.

@lidavidm
Copy link
Contributor

lidavidm commented Dec 27, 2018

We should install a signal handler that gracefully terminates the engine and any bots.

@AdamStelmaszczyk
Copy link
Author

Yes, please.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants