blob: 4b0bcef16217c62795c3e30878caeefb90ba53de (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
#include "LookupServer.h"
#include <LibCore/CEventLoop.h>
#include <stdio.h>
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();
}
|