mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-27 20:58:16 +00: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: 39d1a43c45
Pull-request: https://github.com/SerenityOS/serenity/pull/2593
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue