]> granicus.if.org Git - procps-ng/commit
top: respond to library changes regarding self lookups
authorJim Warner <james.warner@comcast.net>
Sun, 23 Aug 2015 05:00:00 +0000 (00:00 -0500)
committerCraig Small <csmall@enc.com.au>
Wed, 26 Aug 2015 12:42:02 +0000 (22:42 +1000)
commit66cd99270debdc7a5271e5cb0ff69233c5660572
treec4af8cfc0b91c5317cb8e28a6913b1dd035e3af2
parente949b78c30d949f4789db5d798c3179849ed688c
top: respond to library changes regarding self lookups

Just in case, make the old proc_t used in the before()
function static so valgrind doesn't get his panties in
a bunch over the fact the 'cmd' is now dynamic memory.

[ Shouldn't that function, or an equivalent, also be ]
[ part of our new library's implementation? However, ]
[ is it proper for a brand new library to abnormally ]
[ terminate a calling process with a stderr message? ]

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