From f813bb52a28cfb42dcf73015e3ca659658c7d4d6 Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Sun, 12 Jan 2020 11:59:11 +0100 Subject: Applications+DevTools+MenuApplets: Drop "unix" pledge when possible Now that the "unix" pledge is no longer required for socket I/O, we can drop it after making the connections we need in a program. In most GUI program cases, once we've connected to the WindowServer by instantiating a GApplication, we no longer need "unix" :^) --- Applications/Help/main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Applications/Help/main.cpp') diff --git a/Applications/Help/main.cpp b/Applications/Help/main.cpp index 4ffe0cf86e..19b31a517c 100644 --- a/Applications/Help/main.cpp +++ b/Applications/Help/main.cpp @@ -31,7 +31,7 @@ int main(int argc, char* argv[]) GApplication app(argc, argv); - if (pledge("stdio unix shared_buffer rpath", nullptr) < 0) { + if (pledge("stdio shared_buffer rpath", nullptr) < 0) { perror("pledge"); return 1; } -- cgit v1.2.3