]> git.proxmox.com Git - pve-common.git/commitdiff
ProcFSTools: include ppid in read_proc_pid_stat
authorWolfgang Bumiller <w.bumiller@proxmox.com>
Fri, 8 Nov 2019 10:06:10 +0000 (11:06 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Mon, 11 Nov 2019 16:09:56 +0000 (17:09 +0100)
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
src/PVE/ProcFSTools.pm

index 40e40633fb1d7801cac049242ce9a0c4b5c97154..14c1d6ed8a37700e07cea3e26f9fa5338e24e3db 100644 (file)
@@ -150,6 +150,7 @@ sub read_proc_pid_stat {
     if ($statstr && $statstr =~ m/^$pid \(.*\) (\S) (-?\d+) -?\d+ -?\d+ -?\d+ -?\d+ \d+ \d+ \d+ \d+ \d+ (\d+) (\d+) (-?\d+) (-?\d+) -?\d+ -?\d+ -?\d+ 0 (\d+) (\d+) (-?\d+) \d+ \d+ \d+ \d+ \d+ \d+ \d+ \d+ \d+ \d+ \d+ \d+ \d+ -?\d+ -?\d+ \d+ \d+ \d+/) {
        return {
            status => $1,
+           ppid => $2,
            utime => $3,
            stime => $4,
            starttime => $7,