Remove assertion that fails on hardened kernels

(thanks to Wolfram Schlich for the report)
This commit is contained in:
Hisham Muhammad 2008-09-23 06:29:03 +00:00
parent 11931f1bc8
commit a2f6eea0c4
2 changed files with 5 additions and 1 deletions

View File

@ -7,6 +7,8 @@ What's new in version 0.8.1
(thanks to Ian Page Hands) (thanks to Ian Page Hands)
* BUGFIX: Fix collection of IO stats in multithreaded processes * BUGFIX: Fix collection of IO stats in multithreaded processes
(thanks to Gerhard Heift) (thanks to Gerhard Heift)
* Remove assertion that fails on hardened kernels
(thanks to Wolfram Schlich for the report)
What's new in version 0.8 What's new in version 0.8

View File

@ -371,7 +371,9 @@ void ProcessList_sort(ProcessList* this) {
// Take PID 1 as root and add to the new listing // Take PID 1 as root and add to the new listing
int vsize = Vector_size(this->processes); int vsize = Vector_size(this->processes);
Process* init = (Process*) (Vector_take(this->processes, 0)); Process* init = (Process*) (Vector_take(this->processes, 0));
assert(init->pid == 1); // This assertion crashes on hardened kernels.
// I wonder how well tree view works on those systems.
// assert(init->pid == 1);
init->indent = 0; init->indent = 0;
Vector_add(this->processes2, init); Vector_add(this->processes2, init);
// Recursively empty list // Recursively empty list