mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-09-21 10:19:03 +03:00
LibC: Make sigprocmask error check more consistent with rest of this code
This commit is contained in:
parent
7ffcc5a8b2
commit
39d1a43c45
Notes:
sideshowbarker
2024-07-19 05:32:28 +09:00
Author: https://github.com/nico Commit: https://github.com/SerenityOS/serenity/commit/39d1a43c452 Pull-request: https://github.com/SerenityOS/serenity/pull/2593
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user