[pve-devel] [PATCH common 1/5] ProcFSTools: include ppid in read_proc_pid_stat

Wolfgang Bumiller w.bumiller at proxmox.com
Fri Nov 8 11:06:10 CET 2019


Signed-off-by: Wolfgang Bumiller <w.bumiller at proxmox.com>
---
 src/PVE/ProcFSTools.pm | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/PVE/ProcFSTools.pm b/src/PVE/ProcFSTools.pm
index 40e4063..14c1d6e 100644
--- a/src/PVE/ProcFSTools.pm
+++ b/src/PVE/ProcFSTools.pm
@@ -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,
-- 
2.20.1





More information about the pve-devel mailing list