forked from enlightenment/enlightenment
parent
1a4450556b
commit
ec12cff9f4
|
@ -891,7 +891,7 @@ _get_ppid(pid_t pid)
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
if ((read(fd, buf, sizeof(buf))) < 4) return -1;
|
if ((read(fd, buf, sizeof(buf))) < 4) return -1;
|
||||||
buf[sizeof(buf) - 1] = '0';
|
buf[sizeof(buf) - 1] = 0;
|
||||||
s = strrchr(buf, ')');
|
s = strrchr(buf, ')');
|
||||||
s += 3;
|
s += 3;
|
||||||
ppid = atoi(s);
|
ppid = atoi(s);
|
||||||
|
|
Loading…
Reference in New Issue