mirror of
https://github.com/RGBCube/serenity
synced 2025-05-24 03:55:06 +00:00
IRCClient: Use pledge()
This commit is contained in:
parent
2067c003ff
commit
2b20e8e187
1 changed files with 10 additions and 0 deletions
|
@ -5,8 +5,18 @@
|
|||
|
||||
int main(int argc, char** argv)
|
||||
{
|
||||
if (pledge("stdio inet dns unix shared_buffer cpath rpath fattr", nullptr) < 0) {
|
||||
perror("pledge");
|
||||
return 1;
|
||||
}
|
||||
|
||||
GApplication app(argc, argv);
|
||||
|
||||
if (pledge("stdio inet dns unix shared_buffer rpath", nullptr) < 0) {
|
||||
perror("pledge");
|
||||
return 1;
|
||||
}
|
||||
|
||||
IRCAppWindow app_window;
|
||||
app_window.show();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue