mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-31 13:19:05 +00:00
killall: Don't parse SIGINVAL as signal 0
This commit is contained in:
parent
4934a1b702
commit
d97614a31e
Notes:
sideshowbarker
2024-07-18 03:35:30 +09:00
Author: https://github.com/tcl3
Commit: d97614a31e
Pull-request: https://github.com/SerenityOS/serenity/pull/19173
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue