kill: Use pledge()

This commit is contained in:
Andreas Kling 2020-02-18 13:16:33 +01:00
parent 0bef6c9d78
commit 60c8d2379a

View file

@ -38,6 +38,11 @@ static void print_usage_and_exit()
int main(int argc, char** argv)
{
if (pledge("stdio proc", nullptr) < 0) {
perror("pledge");
return 1;
}
if (argc != 2 && argc != 3)
print_usage_and_exit();
bool ok;