mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 04:58:13 +00:00
TTYServer: Use pledge()
This commit is contained in:
parent
7b6b1bae02
commit
5f5791cac8
1 changed files with 5 additions and 0 deletions
|
@ -6,6 +6,11 @@
|
|||
|
||||
int main(int argc, char** argv)
|
||||
{
|
||||
if (pledge("stdio tty proc exec", nullptr) < 0) {
|
||||
perror("pledge");
|
||||
return 1;
|
||||
}
|
||||
|
||||
if (argc < 2)
|
||||
return -1;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue