Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 557749e5 authored by Josh Gao's avatar Josh Gao
Browse files

Don't create tombstone directory. DO NOT MERGE

Partial backport of cf79748.

Bug: http://b/26403620
Change-Id: I412889bfa331c96ad8e2ce6e0d66b54fb230e8c0
parent 9515c23e
Loading
Loading
Loading
Loading
+0 −8
Original line number Diff line number Diff line
@@ -810,14 +810,6 @@ static int activity_manager_connect() {
char* engrave_tombstone(pid_t pid, pid_t tid, int signal, uintptr_t abort_msg_address,
        bool dump_sibling_threads, bool quiet, bool* detach_failed,
        int* total_sleep_time_usec) {
    mkdir(TOMBSTONE_DIR, 0755);
    chown(TOMBSTONE_DIR, AID_SYSTEM, AID_SYSTEM);

    if (selinux_android_restorecon(TOMBSTONE_DIR) == -1) {
        *detach_failed = false;
        return NULL;
    }

    int fd;
    char* path = find_and_open_tombstone(&fd);
    if (!path) {