mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-04-25 05:55:13 +00:00
HackStudio: Use pledge()
This commit is contained in:
parent
c13328bd2b
commit
457c7d9efd
Notes:
sideshowbarker
2024-07-19 10:10:27 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/457c7d9efd7
1 changed files with 5 additions and 0 deletions
|
@ -96,6 +96,11 @@ bool make_is_available();
|
|||
|
||||
int main(int argc, char** argv)
|
||||
{
|
||||
if (pledge("stdio tty rpath cpath wpath shared_buffer proc unix fattr", nullptr) < 0) {
|
||||
perror("pledge");
|
||||
return 1;
|
||||
}
|
||||
|
||||
GApplication app(argc, argv);
|
||||
|
||||
Function<void()> update_actions;
|
||||
|
|
Loading…
Add table
Reference in a new issue