mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-22 09:19:03 +00:00
SystemMonitor: Add "proc" pledge so we can send signals to processes
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user