Commit e67965a3 authored by topjohnwu's avatar topjohnwu

Silent some errors

parent ec472309
......@@ -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 ..... */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment