sigwait returns error number directly, not through errno