Commit 9b419762 authored by topjohnwu's avatar topjohnwu

Preserve last log

parent d08fd056
...@@ -106,6 +106,7 @@ static void *logger_thread(void *args) { ...@@ -106,6 +106,7 @@ static void *logger_thread(void *args) {
} }
static void *magisk_log_thread(void *args) { static void *magisk_log_thread(void *args) {
rename(LOGFILE, LOGFILE ".bak");
FILE *log = xfopen(LOGFILE, "w"); FILE *log = xfopen(LOGFILE, "w");
setbuf(log, NULL); setbuf(log, NULL);
int pipefd[2]; int pipefd[2];
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment