mirror of
https://github.com/topjohnwu/Magisk.git
synced 2024-11-27 20:15:29 +00:00
Silent some errors
This commit is contained in:
parent
ec4723096f
commit
e67965a381
@ -51,7 +51,7 @@ static int parse_ppid(int pid) {
|
||||
char path[32];
|
||||
int ppid;
|
||||
sprintf(path, "/proc/%d/stat", pid);
|
||||
FILE *stat = xfopen(path, "re");
|
||||
FILE *stat = fopen(path, "re");
|
||||
if (stat == nullptr)
|
||||
return -1;
|
||||
/* PID COMM STATE PPID ..... */
|
||||
|
Loading…
Reference in New Issue
Block a user