1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 09:58:11 +00:00

SystemMonitor: Symbolicate process stacks in a background thread

Use a Threading::BackgroundAction to symbolicate stacks. This avoids
blocking the main thread and keeps the GUI running (mostly.)
This commit is contained in:
Andreas Kling 2021-05-22 19:49:37 +02:00
parent b5d73c834f
commit 9676548800
3 changed files with 34 additions and 3 deletions

View file

@ -103,7 +103,7 @@ int main(int argc, char** argv)
sched_setparam(0, &param);
}
if (pledge("stdio proc recvfd sendfd rpath exec unix", nullptr) < 0) {
if (pledge("stdio thread proc recvfd sendfd rpath exec unix", nullptr) < 0) {
perror("pledge");
return 1;
}