pos = strstr(buf, "\ninitpid: ");
if (pos!=0) {
- pos += sizeof("\ninitpid: ")-1;
+ pos += sizeof("\ninitpid: ")-1;
if (strncmp(pos, "none", 4)==0) *res = -1;
else *res = atoi(pos);
}
{
struct dirent **namelist;
int n;
-
- vc_new_s_context(1,0,0); // ignore errors silently...
+
+ switchToWatchXid(0); // ignore errors silently...
n = scandir("/proc", &namelist, selectPid, alphasort);
if (n<0) perror("scandir()");
else while (n--) {