From 39d1a43c452a3a8e6262c008425188220ec6d538 Mon Sep 17 00:00:00 2001 From: Nico Weber Date: Fri, 19 Jun 2020 16:28:39 -0400 Subject: [PATCH] LibC: Make sigprocmask error check more consistent with rest of this code --- Libraries/LibC/spawn.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Libraries/LibC/spawn.cpp b/Libraries/LibC/spawn.cpp index 62b778105e..c8815d9274 100644 --- a/Libraries/LibC/spawn.cpp +++ b/Libraries/LibC/spawn.cpp @@ -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); }