mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-30 05:09:01 +00:00
kill: Replace LibC kill call with LibCore equivalent
This commit is contained in:
parent
200a4a00dd
commit
c1b3b4d6d8
Notes:
sideshowbarker
2024-07-17 08:13:43 +09:00
Author: https://github.com/tcl3
Commit: c1b3b4d6d8
Pull-request: https://github.com/SerenityOS/serenity/pull/19156
Reviewed-by: https://github.com/gmta ✅
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();
|
||||
|
||||
int rc = kill(pid, signum);
|
||||
if (rc < 0)
|
||||
perror("kill");
|
||||
TRY(Core::System::kill(pid, signum));
|
||||
return 0;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue