UtkarshVerma / dwmblocks-async

An efficient, lean, and asynchronous status feed generator for dwm.
GNU General Public License v2.0
232 stars 87 forks source link

setting dummy sighandler to avoid unknown signal crash #14

Closed duarm closed 2 years ago

duarm commented 2 years ago

currently, if dwmblocks receives a signal and there's no block associated with it, it will crash with an "unknown signal error". This patch just ignores the signal instead of crashing.

UtkarshVerma commented 2 years ago

Thanks for the PR. I felt the implementation and code style was a bit inconsistent which is why I've pushed changes on my own.

duarm commented 2 years ago

no prob, thanks