hishamhm / htop

htop is an interactive text-mode process viewer for Unix systems. It aims to be a better 'top'.
GNU General Public License v2.0
5.84k stars 581 forks source link

Properly identify zombie processes #970

Open joder opened 4 years ago

joder commented 4 years ago

I suggest the following small fix with the following reasoning:

To me this is a quick fix and the setting of command name of processes seems a little bit clumsy (i.e. readCmdlineFile is not just reading, but actually setting the command name of a process and classifying it as a kernel thread), however, I lack the insight as well as experience to write it better. Maybe setting the command name of a zombie process should also be moved to readCmdlineFile and the function renamed. Please, let me know what you think about it.

This closes issue #930.

natoscott commented 4 years ago

Merged here: htop-dev/htop@fed14a5