1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 04:17:35 +00:00

Shell: Pledge sigaction

The shell is wiring up signal handlers, and when they get torn
down by Core::EventLoop, they are reset, which requires sigaction.
This commit is contained in:
Tom 2020-07-07 06:57:57 -06:00 committed by Andreas Kling
parent 6dfd503518
commit 5d9ea2c787

View file

@ -121,7 +121,7 @@ int main(int argc, char** argv)
pthread_sigmask(SIG_BLOCK, &blocked, NULL);
#endif
#ifdef __serenity__
if (pledge("stdio rpath wpath cpath proc exec tty accept", nullptr) < 0) {
if (pledge("stdio rpath wpath cpath proc exec tty accept sigaction", nullptr) < 0) {
perror("pledge");
return 1;
}