1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-24 20:47:43 +00:00

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

This commit is contained in:
Andreas Kling 2020-01-12 10:07:42 +01:00
parent 1b9f4c7c40
commit 0d961ece94

View file

@ -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;
} }