mirror of
https://github.com/SerenityOS/serenity.git
synced 2025-01-23 09:51:57 -05: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
Reference in a new issue