Update exec functions signatures

This commit is contained in:
topjohnwu
2018-11-26 03:06:43 -05:00
parent b01a8cace6
commit 731455f164
4 changed files with 17 additions and 18 deletions

View File

@@ -83,7 +83,7 @@ static void *logcat_thread(void *) {
char line[4096];
while (1) {
// Start logcat
log_pid = exec_array(0, &log_fd, nullptr, log_cmd.data());
log_pid = exec_array(false, &log_fd, nullptr, log_cmd.data());
FILE *logs = fdopen(log_fd, "r");
while (fgets(line, sizeof(line), logs)) {
if (line[0] == '-')
@@ -104,7 +104,7 @@ static void *logcat_thread(void *) {
LOGI("magisklogd: logcat output EOF");
// Clear buffer
log_pid = exec_array(0, nullptr, nullptr, clear_cmd.data());
log_pid = exec_array(false, nullptr, nullptr, clear_cmd.data());
waitpid(log_pid, nullptr, 0);
}
}