procps/ps
Jim Warner faf6d4dc93 library: the uref functions were insufficiently robust
The earlier attempt at protecting these functions from
already freed memory worked just fine until the memory
was, in fact, reused by the OS. At that point, the ref
count would most likely fail an existing a test for 0.

So this commit will take control of the 'info' pointer
and force it to NULL when a reference count reaches 0.

Plus, since it makes little sense returning an address
that a caller already has, henceforth we will return a
reference count out of the 'ref' and 'unref functions.

Reference(s):
commit 74beff80ff

Signed-off-by: Jim Warner <james.warner@comcast.net>
2015-07-01 21:30:17 +10:00
..
common.h ps: exploit the simplified library interface for wchan 2015-06-19 19:09:20 +10:00
COPYING license: update FSF addresses 2012-03-04 08:04:24 +11:00
display.c library: Remove signal name from library 2015-06-29 21:52:51 +10:00
global.c library: Update uptime calls to standard format 2015-06-29 22:09:59 +10:00
HACKING docs: remove old information from HACKING 2012-01-13 22:42:38 +01:00
help.c ps: add -q/q/--quick-pid option 2014-07-10 21:24:19 +02:00
output.c library: the uref functions were insufficiently robust 2015-07-01 21:30:17 +10:00
parser.c ps: exploit the simplified library interface for wchan 2015-06-19 19:09:20 +10:00
ps.1 documentation: fix man pages due to refactor for wchan 2015-06-19 19:09:21 +10:00
regression
select.c ps: add -q/q/--quick-pid option 2014-07-10 21:24:19 +02:00
sortformat.c docs: clarification to license headers in files 2012-03-03 18:41:11 +11:00
stacktrace.c ps: cut out code unused code 2012-11-06 22:30:02 +11:00