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

Commit 9174a9bf authored by Tom Cherry's avatar Tom Cherry
Browse files

init: only print backtraces on subsequent reboots with a value

Userspace reboot resets sys.powerctl to an empty string once it
starts, which was inadvertently triggering the backtrace of the main
init thread.

Test: no more unexpected backtraces
Change-Id: I35d6f1b37aa31a46ae9266647f41a709f28b6099
parent db22f23d
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -489,8 +489,10 @@ uint32_t HandlePropertySet(const std::string& name, const std::string& value,
        }
        LOG(INFO) << "Received sys.powerctl='" << value << "' from pid: " << cr.pid
                  << process_log_string;
        if (!value.empty()) {
            DebugRebootLogging();
        }
    }

    // If a process other than init is writing a non-empty value, it means that process is
    // requesting that init performs a restorecon operation on the path specified by 'value'.