mirror of
https://github.com/RGBCube/serenity
synced 2025-05-14 08:54:58 +00:00
kill: Don't parse SIGINVAL as signal 0
This commit is contained in:
parent
c1b3b4d6d8
commit
2ffdd3e7c1
1 changed files with 1 additions and 1 deletions
|
@ -50,7 +50,7 @@ ErrorOr<int> serenity_main(Main::Arguments arguments)
|
|||
|
||||
if (is_ascii_alpha(strings[1][1])) {
|
||||
int value = getsignalbyname(&strings[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