浏览代码

AudioServer: Drop "rpath" and "wpath" pledges

Once the event loop is constructed, we will have opened /dev/audio for
output and no more filesystem lookups need to happen.
Andreas Kling 5 年之前
父节点
当前提交
a2ed805d23
共有 1 个文件被更改,包括 2 次插入1 次删除
  1. 2 1
      Servers/AudioServer/main.cpp

+ 2 - 1
Servers/AudioServer/main.cpp

@@ -35,9 +35,10 @@ int main(int, char**)
         return 1;
         return 1;
     }
     }
     ASEventLoop event_loop;
     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");
         perror("pledge");
         return 1;
         return 1;
     }
     }
+
     return event_loop.exec();
     return event_loop.exec();
 }
 }