LibC: Make sigprocmask error check more consistent with rest of this code

This commit is contained in:
Nico Weber 2020-06-19 16:28:39 -04:00 committed by Andreas Kling
parent 7ffcc5a8b2
commit 39d1a43c45
Notes: sideshowbarker 2024-07-19 05:32:28 +09:00

View File

@ -90,7 +90,7 @@ extern "C" {
}
}
if (flags & POSIX_SPAWN_SETSIGMASK) {
if (sigprocmask(SIG_SETMASK, &attr->sigmask, nullptr) != 0) {
if (sigprocmask(SIG_SETMASK, &attr->sigmask, nullptr) < 0) {
perror("posix_spawn sigprocmask");
exit(127);
}