You've already forked Magisk
mirror of
https://github.com/topjohnwu/Magisk.git
synced 2025-09-06 06:36:58 +00:00
Misc QoL changes
- su: Preserve correct capacity to avoid vector reallocation - su: Properly format code - daemon: Remove useless `if` - docs: Remove outdated info
This commit is contained in:
@@ -283,10 +283,7 @@ static void switch_cgroup(const char *cgroup, int pid) {
|
||||
if (fd == -1)
|
||||
return;
|
||||
snprintf(buf, sizeof(buf), "%d\n", pid);
|
||||
if (xwrite(fd, buf, strlen(buf)) == -1) {
|
||||
close(fd);
|
||||
return;
|
||||
}
|
||||
xwrite(fd, buf, strlen(buf));
|
||||
close(fd);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user