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

TTYServer: Use pledge()

This commit is contained in:
Andreas Kling 2020-01-11 21:34:40 +01:00
parent 7b6b1bae02
commit 5f5791cac8

View file

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