Skip to content

Commit

Permalink
AudioServer: Drop "rpath" and "wpath" pledges
Browse files Browse the repository at this point in the history
Once the event loop is constructed, we will have opened /dev/audio for
output and no more filesystem lookups need to happen.
  • Loading branch information
awesomekling committed Jan 21, 2020
1 parent 5b992b1 commit a2ed805
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Servers/AudioServer/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,10 @@ int main(int, char**)
return 1;
}
ASEventLoop event_loop;
if (pledge("stdio thread shared_buffer accept rpath wpath", nullptr) < 0) {
if (pledge("stdio thread shared_buffer accept", nullptr) < 0) {
perror("pledge");
return 1;
}

return event_loop.exec();
}

0 comments on commit a2ed805

Please sign in to comment.