1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-14 08:24:58 +00:00

killall: Don't parse SIGINVAL as signal 0

This commit is contained in:
Tim Ledbetter 2023-05-30 20:26:07 +01:00 committed by Andreas Kling
parent 4934a1b702
commit d97614a31e

View file

@ -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;
}