mirror of
https://github.com/topjohnwu/Magisk.git
synced 2025-01-04 16:27:39 +00:00
Open log file in append mode
This commit is contained in:
parent
4de51d93ef
commit
ef175e3cbe
@ -129,7 +129,7 @@ void log_daemon() {
|
|||||||
|
|
||||||
// Setup log dumps
|
// Setup log dumps
|
||||||
rename(LOGFILE, LOGFILE ".bak");
|
rename(LOGFILE, LOGFILE ".bak");
|
||||||
events[LOG_EVENT].fd = xopen(LOGFILE, O_CREAT | O_WRONLY | O_TRUNC | O_CLOEXEC, 0644);
|
events[LOG_EVENT].fd = xopen(LOGFILE, O_CREAT | O_WRONLY | O_TRUNC | O_CLOEXEC | O_APPEND, 0644);
|
||||||
|
|
||||||
int log_fd = -1, log_pid;
|
int log_fd = -1, log_pid;
|
||||||
char line[PIPE_BUF];
|
char line[PIPE_BUF];
|
||||||
|
Loading…
x
Reference in New Issue
Block a user