mirror of
https://github.com/RGBCube/serenity
synced 2025-06-01 08:28:11 +00:00
Clipboard: Tighten pledge promises a bit earlier :^)
This commit is contained in:
parent
8f1d9c949d
commit
4c47b3951d
1 changed files with 1 additions and 6 deletions
|
@ -12,7 +12,7 @@
|
|||
|
||||
int main(int, char**)
|
||||
{
|
||||
if (pledge("stdio recvfd sendfd accept unix", nullptr) < 0) {
|
||||
if (pledge("stdio recvfd sendfd accept", nullptr) < 0) {
|
||||
perror("pledge");
|
||||
return 1;
|
||||
}
|
||||
|
@ -26,11 +26,6 @@ int main(int, char**)
|
|||
bool ok = server->take_over_from_system_server();
|
||||
VERIFY(ok);
|
||||
|
||||
if (pledge("stdio recvfd sendfd accept", nullptr) < 0) {
|
||||
perror("pledge");
|
||||
return 1;
|
||||
}
|
||||
|
||||
server->on_ready_to_accept = [&] {
|
||||
auto client_socket = server->accept();
|
||||
if (!client_socket) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue