mirror of
https://github.com/topjohnwu/Magisk.git
synced 2025-10-24 15:59:39 +00:00
Directly print output over socket
This commit is contained in:
@@ -247,10 +247,11 @@ bool init_list() {
|
||||
}
|
||||
|
||||
void ls_list(int client) {
|
||||
write_int(client, DAEMON_SUCCESS);
|
||||
write_int(client, hide_list.size());
|
||||
FILE *out = fdopen(recv_fd(client), "a");
|
||||
for (auto &s : hide_list)
|
||||
write_string(client, s);
|
||||
fprintf(out, "%s\n", s.c_str());
|
||||
fclose(out);
|
||||
write_int(client, DAEMON_SUCCESS);
|
||||
close(client);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user