summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorJim Warner <james.warner@comcast.net>2021-02-02 00:00:00 -0600
committerCraig Small <csmall@dropbear.xyz>2021-02-09 16:40:52 +1100
commit3c87c46439a4cea112b7fc3983b2dab969a0b42a (patch)
tree647dbf9a7fb35d3a25ffc2ee41fa8e7b4565f992 /doc
parent4770195b870e22ab5a1ce6eece59d32bb90244ba (diff)
downloadprocps-ng-3c87c46439a4cea112b7fc3983b2dab969a0b42a.tar.gz
library: tweak 'other' user/group names for efficiency
This commit just ensures that the relatively expensive ID to name conversions aren't performed unless they're explicitly requested. It also internalizes those flags that required the PROC_FILLSTATUS flag to also be set. [ requiring a caller, in our case pids.c, to provide ] [ two flags when a single field was the objective is ] [ wrong & represents a future potential toe-stubber. ] [ moreover, what's worse is that those two flags are ] [ seemingly unrelated. but, without both, a SEGV can ] [ can be expected when a result.str pointer is NULL. ] [ by contrast, in the master branch those fields are ] [ arrays which, when set to zeroes, produce an empty ] [ string. So, there is no abend (but no name either) ] [ when one of those two required flags were omitted. ] [ and worth noting, in that branch it's not just one ] [ caller required to observe a two flag requirement. ] Signed-off-by: Jim Warner <james.warner@comcast.net>
Diffstat (limited to 'doc')
0 files changed, 0 insertions, 0 deletions