Commit 8bdec715 authored by Hisham Muhammad's avatar Hisham Muhammad
Browse files

show names of zombie processes properly

parent 36ef1a93
......@@ -625,7 +625,10 @@ static bool ProcessList_processEntries(ProcessList* this, const char* dirname, P
ProcessList_add(this, process);
}
if (Process_isThread(process)) {
if (process->state == 'Z') {
free(process->comm);
process->comm = String_copy(command);
} else if (Process_isThread(process)) {
if (this->showThreadNames || Process_isKernelThread(process) || process->state == 'Z') {
free(process->comm);
process->comm = String_copy(command);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment