Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
adam.huang
htop
Commits
8bdec715
Commit
8bdec715
authored
Mar 17, 2011
by
Hisham Muhammad
Browse files
show names of zombie processes properly
parent
36ef1a93
Changes
1
Hide whitespace changes
Inline
Side-by-side
ProcessList.c
View file @
8bdec715
...
...
@@ -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
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment