[libproc-processtable-perl] 01/02: Recognize the new P (parked) process state

Salvatore Bonaccorso carnil at debian.org
Thu Jan 11 16:15:10 UTC 2018


This is an automated email from the git hooks/post-receive script.

carnil pushed a commit to branch master
in repository libproc-processtable-perl.

commit 8ca7e2b1f1b8ac10e96c94a689b5e6b61f35176f
Author: Salvatore Bonaccorso <carnil at debian.org>
Date:   Thu Jan 11 17:13:28 2018 +0100

    Recognize the new P (parked) process state
    
    Thanks: Teodor Milkov
    
    Closes: #886941
---
 .../Recognize-the-new-P-parked-process-state.patch | 43 ++++++++++++++++++++++
 debian/patches/series                              |  1 +
 2 files changed, 44 insertions(+)

diff --git a/debian/patches/Recognize-the-new-P-parked-process-state.patch b/debian/patches/Recognize-the-new-P-parked-process-state.patch
new file mode 100644
index 0000000..cfa2200
--- /dev/null
+++ b/debian/patches/Recognize-the-new-P-parked-process-state.patch
@@ -0,0 +1,43 @@
+From: Teodor Milkov <zimage at icdsoft.com>
+Date: Fri, 5 Jan 2018 11:02:03 +0200
+Subject: Recognize the new P (parked) process state
+Origin: https://github.com/jwbargsten/perl-proc-processtable/commit/383e79030a946c9eea9e800b04caca3c8552f5b5
+Bug-Debian: https://bugs.debian.org/886941
+
+Introduced in https://lkml.org/lkml/2017/9/25/257
+---
+ os/Linux.c | 3 +++
+ os/Linux.h | 3 ++-
+ 2 files changed, 5 insertions(+), 1 deletion(-)
+
+diff --git a/os/Linux.c b/os/Linux.c
+index 79766f7..cf85d11 100644
+--- a/os/Linux.c
++++ b/os/Linux.c
+@@ -520,6 +520,9 @@ static void fixup_stat_values(char *format_str, struct procstat* prs)
+         case 't':
+             prs->state = get_string(TRACINGSTOP);
+             break;
++        case 'P':
++            prs->state = get_string(PARKED);
++            break;
+         /* unknown state, state is already set to NULL */
+         default:
+             ppt_warn("Ran into unknown state (hex char: %x)", (int) prs->state_c);
+diff --git a/os/Linux.h b/os/Linux.h
+index 0ff6376..6b12c5e 100644
+--- a/os/Linux.h
++++ b/os/Linux.h
+@@ -58,7 +58,8 @@ enum state
+ 	UWAIT,
+     DEAD,
+     WAKEKILL,
+-    TRACINGSTOP
++    TRACINGSTOP,
++    PARKED
+ };
+ 
+ 
+-- 
+2.15.1
+
diff --git a/debian/patches/series b/debian/patches/series
index a6aa181..78eeffa 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1 +1,2 @@
 fix-manpage-references-in-POD.patch
+Recognize-the-new-P-parked-process-state.patch

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-perl/packages/libproc-processtable-perl.git



More information about the Pkg-perl-cvs-commits mailing list