Preserve last log
This commit is contained in:
parent
d08fd0561a
commit
9b41976252
@ -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];
|
||||||
|
Loading…
x
Reference in New Issue
Block a user