mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 16:07:47 +00:00
LibC: Make sigprocmask error check more consistent with rest of this code
This commit is contained in:
parent
7ffcc5a8b2
commit
39d1a43c45
1 changed files with 1 additions and 1 deletions
|
@ -90,7 +90,7 @@ extern "C" {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (flags & POSIX_SPAWN_SETSIGMASK) {
|
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");
|
perror("posix_spawn sigprocmask");
|
||||||
exit(127);
|
exit(127);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue