mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 04:28:13 +00:00
SystemMonitor: Add "proc" pledge so we can send signals to processes
This commit is contained in:
parent
1b9f4c7c40
commit
0d961ece94
1 changed files with 2 additions and 2 deletions
|
@ -49,14 +49,14 @@ static NonnullRefPtr<GWidget> build_graphs_tab();
|
|||
|
||||
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");
|
||||
return 1;
|
||||
}
|
||||
|
||||
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");
|
||||
return 1;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue