diff options
author | Andreas Kling <awesomekling@gmail.com> | 2020-01-11 23:19:30 +0100 |
---|---|---|
committer | Andreas Kling <awesomekling@gmail.com> | 2020-01-11 23:28:41 +0100 |
commit | f187374c1bb9704f683f79cc21a388024d7521c4 (patch) | |
tree | 00232474a580d72b6584f1ffb28be90dae4d6631 /Servers/WindowServer | |
parent | b39e732eb321377d6c19a209a1787c7f97f9a7e5 (diff) | |
download | serenity-f187374c1bb9704f683f79cc21a388024d7521c4.zip |
Kernel: fork()ed children should inherit pledge promises :^)
Update various places that now need wider promises as they are not
reset by fork() anymore.
Diffstat (limited to 'Servers/WindowServer')
-rw-r--r-- | Servers/WindowServer/main.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Servers/WindowServer/main.cpp b/Servers/WindowServer/main.cpp index d6aa05a635..aeab64d1e7 100644 --- a/Servers/WindowServer/main.cpp +++ b/Servers/WindowServer/main.cpp @@ -10,7 +10,7 @@ int main(int, char**) { - if (pledge("stdio shared_buffer rpath wpath cpath unix proc fattr", nullptr) < 0) { + if (pledge("stdio shared_buffer rpath wpath cpath unix proc exec fattr", nullptr) < 0) { perror("pledge"); return 1; } @@ -35,7 +35,7 @@ int main(int, char**) WSEventLoop loop; - if (pledge("stdio shared_buffer rpath wpath cpath unix proc", nullptr) < 0) { + if (pledge("stdio shared_buffer rpath wpath cpath unix proc exec", nullptr) < 0) { perror("pledge"); return 1; } |