]> granicus.if.org Git - procps-ng/commit
free: better error message if meminfo not available
authorCraig Small <csmall@dropbear.xyz>
Tue, 31 May 2022 11:10:18 +0000 (21:10 +1000)
committerCraig Small <csmall@dropbear.xyz>
Tue, 31 May 2022 11:10:18 +0000 (21:10 +1000)
commit0ab507fdb136323c993dcdaf0cfa86c619ed0a33
tree6eaf23dc36c3aa500d5822d515ef393d20a8ad31
parent4a183003a043825f128884f8fedd92026011b27b
free: better error message if meminfo not available

When /proc is mounted with subset=pid free just gives the
standard cannot create meminfo structure without any hint why.
free now checks the return value and if it is -ENOENT then it
gives more information about the problem.

References:
 procps-ng/procps#227

Signed-off-by: Craig Small <csmall@dropbear.xyz>
free.c