summaryrefslogtreecommitdiff
path: root/Userland/Services/Clipboard/main.cpp
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2021-06-06 17:52:15 +0200
committerAndreas Kling <kling@serenityos.org>2021-06-06 17:56:34 +0200
commit4c47b3951d5c8839e6b74674001579717fd66a5f (patch)
treea8ca16339f8ed7c3d89198aa944570bddd2e28f8 /Userland/Services/Clipboard/main.cpp
parent8f1d9c949d5549c5ddb431a720025b49f670b653 (diff)
downloadserenity-4c47b3951d5c8839e6b74674001579717fd66a5f.zip
Clipboard: Tighten pledge promises a bit earlier :^)
Diffstat (limited to 'Userland/Services/Clipboard/main.cpp')
-rw-r--r--Userland/Services/Clipboard/main.cpp7
1 files changed, 1 insertions, 6 deletions
diff --git a/Userland/Services/Clipboard/main.cpp b/Userland/Services/Clipboard/main.cpp
index 6afb6ad421..2b56915182 100644
--- a/Userland/Services/Clipboard/main.cpp
+++ b/Userland/Services/Clipboard/main.cpp
@@ -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) {