]> granicus.if.org Git - procps-ng/commit
library: recycle the QUICK_THREADS #define, <PIDS> api
authorJim Warner <james.warner@comcast.net>
Sun, 10 Jul 2016 05:00:00 +0000 (00:00 -0500)
committerCraig Small <csmall@enc.com.au>
Sat, 16 Jul 2016 22:49:48 +0000 (08:49 +1000)
commitc546d9dd4409ee11cd466c99a820a3b5dadfe3f4
treef9987b6054d1a8db91a1549cfdfaa82c10ec9d92
parent2c410df4bfab98ca7f66e5b82a24182e4d49bd72
library: recycle the QUICK_THREADS #define, <PIDS> api

That #define QUICK_THREADS was impossible to implement
under the new <pids> interface. Plus it was also found
to distort some thread information (referenced below).

So, it's always been inactive under the newlib branch.

However, it will (with small changes) still serve some
useful purpose in our library. Now, when the redefined
FALSE_THREADS is active, those special strings showing
"[ duplicate ENUM ]" will appear for any child thread.

Note: the real reason for such strings appearing isn't
being exercised, only their mechanics. In actual usage
they are substituted when a user duplicates such items
in a results stack & only the 1st instance can own it.

With this patch, we are simply fooling the <pids> code
into thinking an item was duplicated via a NULL value.

Reference(s):
. from master branch
commit 25a6ecdbfb3262261465ce1dd0e0e758cf3ac497

Signed-off-by: Jim Warner <james.warner@comcast.net>
proc/readproc.c
proc/readproc.h