1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 15:28:11 +00:00

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

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);
}