mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 02:57:36 +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:
parent
6dfd503518
commit
5d9ea2c787
1 changed files with 1 additions and 1 deletions
|
@ -121,7 +121,7 @@ int main(int argc, char** argv)
|
||||||
pthread_sigmask(SIG_BLOCK, &blocked, NULL);
|
pthread_sigmask(SIG_BLOCK, &blocked, NULL);
|
||||||
#endif
|
#endif
|
||||||
#ifdef __serenity__
|
#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");
|
perror("pledge");
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue