Handle sigemptyset() errors

I don't know how sigemptyset() could possibly fail, but if there's one
thing I've learned about systems programming in C, it's that anything
can fail at any time for no reason and you'll never know why because it
won't happen again until you're not expecting it.