mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-04-22 20:45:14 +00:00
ProtocolServer: Use pledge()
This commit is contained in:
parent
1c755d848e
commit
0ad491a854
Notes:
sideshowbarker
2024-07-19 10:10:15 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/0ad491a854e
1 changed files with 8 additions and 0 deletions
|
@ -6,7 +6,15 @@
|
|||
|
||||
int main(int, char**)
|
||||
{
|
||||
if (pledge("stdio inet shared_buffer unix rpath cpath fattr", nullptr) < 0) {
|
||||
perror("pledge");
|
||||
return 1;
|
||||
}
|
||||
CEventLoop event_loop;
|
||||
if (pledge("stdio inet shared_buffer unix", nullptr) < 0) {
|
||||
perror("pledge");
|
||||
return 1;
|
||||
}
|
||||
(void)*new HttpProtocol;
|
||||
auto server = CLocalServer::construct();
|
||||
bool ok = server->take_over_from_system_server();
|
||||
|
|
Loading…
Add table
Reference in a new issue