mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-06-11 02:13:56 +09:00
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" :^)
This commit is contained in:
parent
114a770c6f
commit
f813bb52a2
Notes:
sideshowbarker
2024-07-19 10:08:36 +09:00
Author: https://github.com/awesomekling
Commit: f813bb52a2
12 changed files with 29 additions and 8 deletions
|
@ -11,7 +11,7 @@ int main(int argc, char** argv)
|
|||
|
||||
GApplication app(argc, argv);
|
||||
|
||||
if (pledge("stdio rpath cpath wpath shared_buffer unix", nullptr) < 0) {
|
||||
if (pledge("stdio rpath cpath wpath shared_buffer", nullptr) < 0) {
|
||||
perror("pledge");
|
||||
return 1;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue