Handle fscanf failure when reading RSS from /proc/self/statm

Authored by mwolff on May 3 2017, 3:43 PM.

Description

Handle fscanf failure when reading RSS from /proc/self/statm

In such situations, disable further read attempts of the RSS value.

Fixes compiler warnings like this one:
src/track/libheaptrack.cpp:339:51: warning:

ignoring return value of ‘int fscanf(FILE*, const char*, ...)’,
declared with attribute warn_unused_result [-Wunused-result]

Details

Committed
mwolffMay 15 2017, 2:21 PM
Parents
R45:4e01b09d1d09: Make sure KF5_FOUND is FALSE when not all components are available
Branches
Unknown
Tags
Unknown