mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-09-19 01:08:18 +03:00
CrashDaemon: Use pledge
This commit is contained in:
parent
5c73c1bff8
commit
e1cc2acded
Notes:
sideshowbarker
2024-07-18 23:56:28 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/e1cc2acded1
@ -74,6 +74,11 @@ static void launch_crash_reporter(const String& coredump_path)
|
||||
|
||||
int main()
|
||||
{
|
||||
if (pledge("stdio rpath proc exec", nullptr) < 0) {
|
||||
perror("pledge");
|
||||
return 1;
|
||||
}
|
||||
|
||||
Core::DirectoryWatcher watcher { "/tmp/coredump" };
|
||||
while (true) {
|
||||
auto event = watcher.wait_for_event();
|
||||
|
Loading…
Reference in New Issue
Block a user