Preserve last log

This commit is contained in:
topjohnwu 2018-06-17 01:38:58 +08:00
parent d08fd0561a
commit 9b41976252
1 changed files with 1 additions and 0 deletions

View File

@ -106,6 +106,7 @@ static void *logger_thread(void *args) {
}
static void *magisk_log_thread(void *args) {
rename(LOGFILE, LOGFILE ".bak");
FILE *log = xfopen(LOGFILE, "w");
setbuf(log, NULL);
int pipefd[2];