]> granicus.if.org Git - procps-ng/commitdiff
library: removed that 'did_fake' flag from the PROCTAB
authorJim Warner <james.warner@comcast.net>
Sat, 28 Sep 2019 05:00:00 +0000 (00:00 -0500)
committerCraig Small <csmall@dropbear.xyz>
Sun, 27 Oct 2019 11:27:49 +0000 (22:27 +1100)
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/readproc.c
proc/readproc.h

index 9f492c528f4b88095f8a37c64ff6055e50d1770f..5c89ce561c6724e241c09f6f14ecbede7e4bad96 100644 (file)
@@ -1319,13 +1319,6 @@ proc_t* readproc(PROCTAB *restrict const PT, proc_t *restrict p) {
   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 {
index d6e30fabe75d29636174d3d44b5325203cbddacf..c3be96358be7f2f80046ce3d7659159f5130d29e 100644 (file)
@@ -169,7 +169,6 @@ typedef struct PROCTAB {
     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);