Silent some errors

This commit is contained in:
topjohnwu 2018-11-24 15:53:15 -05:00
parent ec4723096f
commit e67965a381

View File

@ -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 ..... */