mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 00:47:45 +00:00
CrashDaemon: Use pledge
This commit is contained in:
parent
5c73c1bff8
commit
e1cc2acded
1 changed files with 5 additions and 0 deletions
|
@ -74,6 +74,11 @@ static void launch_crash_reporter(const String& coredump_path)
|
||||||
|
|
||||||
int main()
|
int main()
|
||||||
{
|
{
|
||||||
|
if (pledge("stdio rpath proc exec", nullptr) < 0) {
|
||||||
|
perror("pledge");
|
||||||
|
return 1;
|
||||||
|
}
|
||||||
|
|
||||||
Core::DirectoryWatcher watcher { "/tmp/coredump" };
|
Core::DirectoryWatcher watcher { "/tmp/coredump" };
|
||||||
while (true) {
|
while (true) {
|
||||||
auto event = watcher.wait_for_event();
|
auto event = watcher.wait_for_event();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue