diff options
author | Tim Ledbetter <timledbetter@gmail.com> | 2023-05-30 20:26:07 +0100 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2023-05-31 06:00:45 +0200 |
commit | d97614a31e37cf1520e8e2d1af95d00ffeb0efcd (patch) | |
tree | c7149daa8bf0f7bf2419c1c5fc16eb895447170a | |
parent | 4934a1b70205e5177ae38fd43726b32e5d96f784 (diff) | |
download | serenity-d97614a31e37cf1520e8e2d1af95d00ffeb0efcd.zip |
killall: Don't parse SIGINVAL as signal 0
-rw-r--r-- | Userland/Utilities/killall.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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<int> 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; } |