]> granicus.if.org Git - procps-ng/commit
library: make reads & unref logic a little more robust
authorJim Warner <james.warner@comcast.net>
Sun, 28 Jun 2015 05:00:00 +0000 (00:00 -0500)
committerCraig Small <csmall@enc.com.au>
Mon, 29 Jun 2015 11:30:48 +0000 (21:30 +1000)
commit74beff80ff3624761ecd20fafac0485f48c9c873
tree615993505639396bac370640530e39a093f477c1
parent0c162f7af08f1f755f3f3063b9dd1321a284a65a
library: make reads & unref logic a little more robust

Since we are not using a higher level standard C fopen
all of the read requests were made signal sensitive as
that can result in a 'temporarily' failed i/o request.

Also, protection against some user calling the 'unref'
function on already free memory has been incorporated.
This will protect us from some nasty 'Abort' surprise.

Signed-off-by: Jim Warner <james.warner@comcast.net>
proc/meminfo.c
proc/readstat.c
proc/vmstat.c