diff --git a/Userland/Utilities/kill.cpp b/Userland/Utilities/kill.cpp index da78e72e36..6df80c5cfd 100644 --- a/Userland/Utilities/kill.cpp +++ b/Userland/Utilities/kill.cpp @@ -70,8 +70,6 @@ ErrorOr 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; }