aboutsummaryrefslogtreecommitdiffstats
path: root/debian/patches/100-fix-cgroups-crash.patch
diff options
context:
space:
mode:
authorDiogo Ferreira <defer@cyngn.com>2015-01-14 11:13:52 +0000
committerDiogo Ferreira <defer@cyngn.com>2015-01-14 11:38:57 +0000
commit841159c272ac08b1cd5bdef5167a8ce11383fbb5 (patch)
treed7272ef150e58eaa1acc9ab62cf9e6c0aecbc2da /debian/patches/100-fix-cgroups-crash.patch
parente1a8535012ab86d3e926bebfb7731dab1eb7320a (diff)
downloadandroid_external_htop-841159c272ac08b1cd5bdef5167a8ce11383fbb5.tar.gz
android_external_htop-841159c272ac08b1cd5bdef5167a8ce11383fbb5.tar.bz2
android_external_htop-841159c272ac08b1cd5bdef5167a8ce11383fbb5.zip
Change-Id: I416c44803b3a79c2fd752e342ea113875fa533e0
Diffstat (limited to 'debian/patches/100-fix-cgroups-crash.patch')
-rw-r--r--debian/patches/100-fix-cgroups-crash.patch18
1 files changed, 0 insertions, 18 deletions
diff --git a/debian/patches/100-fix-cgroups-crash.patch b/debian/patches/100-fix-cgroups-crash.patch
deleted file mode 100644
index 4ba95cb..0000000
--- a/debian/patches/100-fix-cgroups-crash.patch
+++ /dev/null
@@ -1,18 +0,0 @@
-diff --git a/ProcessList.c b/ProcessList.c
-index c234357..3bb1b81 100644
---- a/ProcessList.c
-+++ b/ProcessList.c
-@@ -473,7 +473,12 @@ static void ProcessList_readCGroupFile(Process* process, const char* dirname, co
- char** fields = String_split(trimmed, ':');
- free(trimmed);
-
-- process->cgroup = strndup(fields[2] + 1, 10);
-+ if (!fields[1] || !fields[2]) {
-+ process->cgroup = strdup(""); // cgroups do not work
-+ }
-+ else {
-+ process->cgroup = strndup(fields[2] + 1, 10);
-+ }
- String_freeArray(fields);
- }
- fclose(file);