From c0f615fb375942d05dd8316150cc082ec7f2b966 Mon Sep 17 00:00:00 2001 From: Jason Graham Date: Sat, 18 Aug 2018 23:33:11 -0400 Subject: system/iotop: Fix for iotop issue with 4.4.144 kernel Signed-off-by: Willy Sudiarto Raharjo --- system/iotop/fix-proc-status-read.patch | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 system/iotop/fix-proc-status-read.patch (limited to 'system/iotop/fix-proc-status-read.patch') diff --git a/system/iotop/fix-proc-status-read.patch b/system/iotop/fix-proc-status-read.patch new file mode 100644 index 000000000000..b88d8b274f1a --- /dev/null +++ b/system/iotop/fix-proc-status-read.patch @@ -0,0 +1,10 @@ +--- iotop-0.6.orig/iotop/data.py 2013-05-26 18:44:18.000000000 -0400 ++++ iotop-0.6/iotop/data.py 2018-08-18 23:21:03.528110821 -0400 +@@ -193,6 +193,7 @@ + result_dict = {} + try: + for line in open('/proc/%d/status' % pid): ++ if not line.strip(): continue + key, value = line.split(':\t', 1) + result_dict[key] = value.strip() + except IOError: -- cgit v1.2.3