aboutsummaryrefslogtreecommitdiffstats
path: root/debian/patches
diff options
context:
space:
mode:
authorEugene V. Lyubimkin <jackyf@debian.org>2011-09-21 21:17:17 +0300
committerDaniel Lange <DLange@git.local>2016-04-11 13:00:29 +0200
commit38174fffd79f54a8be7642bf170a2320b29e8063 (patch)
tree67e5b48bac68cd7ec535f91cdd8b259e6c9faf07 /debian/patches
parentb40595f7f36fdc3137cb2f767a74d13bebf25039 (diff)
downloaddebian_htop-38174fffd79f54a8be7642bf170a2320b29e8063.tar.gz
debian_htop-38174fffd79f54a8be7642bf170a2320b29e8063.tar.bz2
debian_htop-38174fffd79f54a8be7642bf170a2320b29e8063.zip
Imported Debian patch 0.9-4debian/0.9-4
Diffstat (limited to 'debian/patches')
-rw-r--r--debian/patches/100-fix-cgroups-crash.patch18
-rw-r--r--debian/patches/series1
2 files changed, 19 insertions, 0 deletions
diff --git a/debian/patches/100-fix-cgroups-crash.patch b/debian/patches/100-fix-cgroups-crash.patch
new file mode 100644
index 0000000..4ba95cb
--- /dev/null
+++ b/debian/patches/100-fix-cgroups-crash.patch
@@ -0,0 +1,18 @@
+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);
diff --git a/debian/patches/series b/debian/patches/series
index c8aa567..7204157 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1,2 +1,3 @@
+100-fix-cgroups-crash.patch
600-openvz-veid-on-kernels-gt-2.6.18.patch
700-ltrace-support.patch

© 2014-2024 Faster IT GmbH | imprint | privacy policy