Do not override Linux process library size

The library size in statm is unused and always 0 since Linux 2.6.

Fixes: 8154125d4b
This commit is contained in:
Christian Göttsche 2021-06-12 20:34:42 +02:00 committed by BenBE
parent 45ab05c56a
commit df752dd189
1 changed files with 3 additions and 1 deletions

View File

@ -625,12 +625,14 @@ static bool LinuxProcessList_readStatmFile(LinuxProcess* process, openat_arg_t p
if (!statmfile)
return false;
long int dummy;
int r = fscanf(statmfile, "%ld %ld %ld %ld %ld %ld %ld",
&process->super.m_virt,
&process->super.m_resident,
&process->m_share,
&process->m_trs,
&process->m_lrs,
&dummy, /* unused since Linux 2.6; always 0 */
&process->m_drs,
&process->m_dt);
fclose(statmfile);