1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-14 09:14:58 +00:00

kill: Replace LibC kill call with LibCore equivalent

This commit is contained in:
Tim Ledbetter 2023-05-30 18:11:46 +01:00 committed by Jelle Raaijmakers
parent 200a4a00dd
commit c1b3b4d6d8

View file

@ -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;
}