diff options
Diffstat (limited to 'Services/Taskbar')
-rw-r--r-- | Services/Taskbar/main.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/Services/Taskbar/main.cpp b/Services/Taskbar/main.cpp index 33b96cb465..5287515c1c 100644 --- a/Services/Taskbar/main.cpp +++ b/Services/Taskbar/main.cpp @@ -32,13 +32,18 @@ int main(int argc, char** argv) { - if (pledge("stdio shared_buffer accept proc exec rpath unix cpath fattr", nullptr) < 0) { + if (pledge("stdio shared_buffer accept proc exec rpath unix cpath fattr sigaction", nullptr) < 0) { perror("pledge"); return 1; } GUI::Application app(argc, argv); + signal(SIGCHLD, [](int signo) { + (void)signo; + wait(nullptr); + }); + if (pledge("stdio shared_buffer accept proc exec rpath", nullptr) < 0) { perror("pledge"); return 1; @@ -47,10 +52,5 @@ int main(int argc, char** argv) TaskbarWindow window; window.show(); - signal(SIGCHLD, [](int signo) { - (void)signo; - wait(nullptr); - }); - return app.exec(); } |