mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-10-01 13:49:05 +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();
|
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