mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 17:07:34 +00:00
kill: Replace LibC kill call with LibCore equivalent
This commit is contained in:
parent
200a4a00dd
commit
c1b3b4d6d8
1 changed files with 1 additions and 3 deletions
|
@ -70,8 +70,6 @@ ErrorOr<int> serenity_main(Main::Arguments arguments)
|
||||||
}
|
}
|
||||||
pid_t pid = pid_opt.value();
|
pid_t pid = pid_opt.value();
|
||||||
|
|
||||||
int rc = kill(pid, signum);
|
TRY(Core::System::kill(pid, signum));
|
||||||
if (rc < 0)
|
|
||||||
perror("kill");
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue