mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 19:07:35 +00:00
kill: Use pledge()
This commit is contained in:
parent
0bef6c9d78
commit
60c8d2379a
1 changed files with 5 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue