浏览代码

SystemMonitor: Add "proc" pledge so we can send signals to processes

Andreas Kling 5 年之前
父节点
当前提交
0d961ece94
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      Applications/SystemMonitor/main.cpp

+ 2 - 2
Applications/SystemMonitor/main.cpp

@@ -49,14 +49,14 @@ static NonnullRefPtr<GWidget> build_graphs_tab();
 
 
 int main(int argc, char** argv)
 int main(int argc, char** argv)
 {
 {
-    if (pledge("stdio shared_buffer rpath unix cpath fattr", nullptr) < 0) {
+    if (pledge("stdio proc shared_buffer rpath unix cpath fattr", nullptr) < 0) {
         perror("pledge");
         perror("pledge");
         return 1;
         return 1;
     }
     }
 
 
     GApplication app(argc, argv);
     GApplication app(argc, argv);
 
 
-    if (pledge("stdio shared_buffer rpath unix", nullptr) < 0) {
+    if (pledge("stdio proc shared_buffer rpath unix", nullptr) < 0) {
         perror("pledge");
         perror("pledge");
         return 1;
         return 1;
     }
     }