Signed-off-by: Jim Warner <james.warner@comcast.net>
&P->blkio_tics, &P->gtime, &P->cgtime
);
- if(!P->nlwp){
+ if(!P->nlwp)
P->nlwp = 1;
- }
return 0;
LEAVE(0x160);
}
// if multithreaded, some values are crap
- if(p->nlwp > 1){
+ if(p->nlwp > 1)
p->wchan = ~0ul;
- }
/* some number->text resolving which is time consuming */
/* ( names are cached, so memcpy to arrays was silly ) */
if (file2str(path, "status", &ub) != -1) {
char *str = strstr(ub.buf, "Tgid:");
- if (str) {
+ if (str)
p->tgid = atoi(str + 5); // this tgid is the proper one |
- }
}
}
return pid;