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
c3550e18
Commit
c3550e18
authored
Sep 23, 2008
by
Hisham Muhammad
Browse files
Avoid reading process IO info multiple times on multithreaded processes.
Bugfix from Gerhard Heift.
parent
a5dfaa23
Changes
1
Show whitespace changes
Inline
Side-by-side
ProcessList.c
View file @
c3550e18
...
@@ -565,10 +565,6 @@ static bool ProcessList_processEntries(ProcessList* this, char* dirname, Process
...
@@ -565,10 +565,6 @@ static bool ProcessList_processEntries(ProcessList* this, char* dirname, Process
process
->
tgid
=
parent
->
pid
;
process
->
tgid
=
parent
->
pid
;
}
}
#ifdef HAVE_TASKSTATS
ProcessList_readIoFile
(
this
,
process
,
dirname
,
name
);
#endif
if
(
showUserlandThreads
&&
(
!
parent
||
pid
!=
parent
->
pid
))
{
if
(
showUserlandThreads
&&
(
!
parent
||
pid
!=
parent
->
pid
))
{
char
subdirname
[
MAX_NAME
+
1
];
char
subdirname
[
MAX_NAME
+
1
];
snprintf
(
subdirname
,
MAX_NAME
,
"%s/%s/task"
,
dirname
,
name
);
snprintf
(
subdirname
,
MAX_NAME
,
"%s/%s/task"
,
dirname
,
name
);
...
@@ -577,6 +573,10 @@ static bool ProcessList_processEntries(ProcessList* this, char* dirname, Process
...
@@ -577,6 +573,10 @@ static bool ProcessList_processEntries(ProcessList* this, char* dirname, Process
continue
;
continue
;
}
}
#ifdef HAVE_TASKSTATS
ProcessList_readIoFile
(
this
,
process
,
dirname
,
name
);
#endif
process
->
updated
=
true
;
process
->
updated
=
true
;
if
(
!
existingProcess
)
if
(
!
existingProcess
)
...
...
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