diff options
author | alk3pInjection <webmaster@raspii.tech> | 2023-04-20 00:08:54 +0800 |
---|---|---|
committer | alk3pInjection <webmaster@raspii.tech> | 2023-04-20 00:08:54 +0800 |
commit | a7dd355e8fe8ad0c579a4f0acd06b2e3b52dfc3a (patch) | |
tree | 2b552b59793a33466247fc6fb8cf89ecbfdc4a05 /init/reboot.cpp | |
parent | f0103ea35d56ccebbae16a43cac19ac38b11a9a2 (diff) | |
parent | 43816573a268998f892081eebf3ffe91d65b7e18 (diff) |
Merge tag 'LA.QSSI.13.0.r1-09800-qssi.0' into tachibanatachibana
"LA.QSSI.13.0.r1-09800-qssi.0"
Change-Id: I06ecf682f4d5595bce3383b6031506cc56bc0db2
Diffstat (limited to 'init/reboot.cpp')
-rw-r--r-- | init/reboot.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/init/reboot.cpp b/init/reboot.cpp index 580d8a67a..9edc32808 100644 --- a/init/reboot.cpp +++ b/init/reboot.cpp @@ -616,7 +616,7 @@ static void DoReboot(unsigned int cmd, const std::string& reason, const std::str if (sem_init(&reboot_semaphore, false, 0) == -1) { // These should never fail, but if they do, skip the graceful reboot and reboot immediately. LOG(ERROR) << "sem_init() fail and RebootSystem() return!"; - RebootSystem(cmd, reboot_target); + RebootSystem(cmd, reboot_target, reason); } // Start a thread to monitor init shutdown process @@ -644,7 +644,7 @@ static void DoReboot(unsigned int cmd, const std::string& reason, const std::str // worry about unmounting it. if (!IsDataMounted("*")) { sync(); - RebootSystem(cmd, reboot_target); + RebootSystem(cmd, reboot_target, reason); abort(); } @@ -777,7 +777,7 @@ static void DoReboot(unsigned int cmd, const std::string& reason, const std::str LOG(INFO) << "Shutdown /data"; } } - RebootSystem(cmd, reboot_target); + RebootSystem(cmd, reboot_target, reason); abort(); } |