diff --git a/Servers/LookupServer/main.cpp b/Servers/LookupServer/main.cpp index 7a998aa4f5f..4b0bcef1621 100644 --- a/Servers/LookupServer/main.cpp +++ b/Servers/LookupServer/main.cpp @@ -1,13 +1,24 @@ #include "LookupServer.h" #include +#include int main(int argc, char** argv) { (void)argc; (void)argv; + if (pledge("stdio unix inet cpath rpath fattr", nullptr) < 0) { + perror("pledge"); + return 1; + } + CEventLoop event_loop; LookupServer server; + if (pledge("stdio unix inet", nullptr) < 0) { + perror("pledge"); + return 1; + } + return event_loop.exec(); }