Fix the issue where Unix signals could sometimes be ignored.
Fix the issue where Unix signals could sometimes be ignored.

There seems to be some memory issues going on with signal(), and this
seems to fix it, but I'm not 100% convinced...

charleskorn/batect,charleskorn/batect,charleskorn/batect,charleskorn/batect,charleskorn/batect