Open ptrcnull opened 1 year ago
I'd like to have a better idea what's going on before arbitrarily falling back to a different kernel interface in the hope that it'll give the right answer where a previous one didn't.
Is there something particularly about /proc/self/stat
that might render it less reliable?
( follow-up to #3 )
in some weird cases, such as running qemu-user ( still debugging this issue ),
/proc/self/stat
returns mostly empty values, while/proc/self/task
and/proc/self/status
have the correct values:it would be nice to have a fallback to those, in case they have correct values and /proc/self/stat doesn't