kostaleonard / leocoin

Leo's cryptocurrency
MIT License
4 stars 1 forks source link

SIGINT does not seem to terminate the app #16

Closed kostaleonard closed 11 months ago

kostaleonard commented 12 months ago

As a user, I want CTRL-C (SIGINT) to terminate the app gracefully so that I can manage my compute resources.

For some reason SIGINT doesn't seem to make the app shut down. I've found my computer using most of its CPU running the app days after I thought I killed it. We should figure out why and implement a fix.

kostaleonard commented 11 months ago

I was having trouble reproducing this bug until I tried running in Docker. Docker doesn't pass signals by default. You can add the --init flag to docker run and SIGINT/CTRL-C works just fine. See Docker's docs.