From d97614a31e37cf1520e8e2d1af95d00ffeb0efcd Mon Sep 17 00:00:00 2001 From: Tim Ledbetter Date: Tue, 30 May 2023 20:26:07 +0100 Subject: killall: Don't parse SIGINVAL as signal 0 --- Userland/Utilities/killall.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Userland/Utilities/killall.cpp b/Userland/Utilities/killall.cpp index 013090e91b..b5ac86b9a5 100644 --- a/Userland/Utilities/killall.cpp +++ b/Userland/Utilities/killall.cpp @@ -50,7 +50,7 @@ ErrorOr serenity_main(Main::Arguments arguments) if (is_ascii_alpha(arguments.argv[1][1])) { int value = getsignalbyname(&arguments.argv[1][1]); - if (value >= 0 && value < NSIG) + if (value > 0 && value < NSIG) number = value; } -- cgit v1.2.3