Fixed error check of sigset