When some cleanup was performed on the readproc module
in the commit shown below, some residual code involved
with the 'did_fake' flag remained. Since such logic no
longer served any real need, this patch will whack it.
Reference(s):
. cleanup of readproc functions
commit
887bb51016253e82ae26fe9d78bc7a5dfbe2ef85
Signed-off-by: Jim Warner <james.warner@comcast.net>
proc_t *ret;
proc_t *saved_p;
- PT->did_fake=0;
-// if (PT->taskdir) {
-// closedir(PT->taskdir);
-// PT->taskdir = NULL;
-// PT->taskdir_user = -1;
-// }
-
saved_p = p;
if (p) free_acquired(p, 1);
else {
DIR* taskdir; // for threads
// char deBug1[64];
pid_t taskdir_user; // for threads
- int did_fake; // used when taskdir is missing
int(*finder)(struct PROCTAB *__restrict const, proc_t *__restrict const);
proc_t*(*reader)(struct PROCTAB *__restrict const, proc_t *__restrict const);
int(*taskfinder)(struct PROCTAB *__restrict const, const proc_t *__restrict const, proc_t *__restrict const, char *__restrict const);