shinyblink / sled

Satanic/Sexy/Stupid/Silly/Shiny LED matrix controller
https://shinyblink.github.io/sled/
ISC License
122 stars 25 forks source link

bgm_opc seems to deadlock on deinit #6

Closed vifino closed 6 years ago

vifino commented 6 years ago

Seems to be more likely on some platforms than others. Easily reproducable on OSX, seems to happen quite often on BSD, but not always on Linux?

@20kdc You should take a look at this.

vifino commented 6 years ago

Note: This issue was there before #5, but you could still double ^C to get out most of the time.

A temporary fix is a "panic ^C handler", one that keeps track of the amount of times ^C was pressed, first time is graceful deinit, second is a warning and third is exit(1).

marenz2569 commented 6 years ago

I have actually seen the same problem happen on Debian Buster, but as I am not using bgm_opc I did not bother and just deleted the shared library after every build.

vifino commented 6 years ago

I added the panic handler now, it's working.

vifino commented 6 years ago

As of 7d4aafd772ee580feaf9eb4145d4833187566a02, @20kdc fixed this! They're awesome.