TTYServer: Use pledge()

This commit is contained in:
Andreas Kling 2020-01-11 21:34:40 +01:00
commit 5f5791cac8
Notes: sideshowbarker 2024-07-19 10:10:22 +09:00

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;