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
28d4cad5
Commit
28d4cad5
authored
Apr 22, 2014
by
Hisham Muhammad
Browse files
xread may return -1.
parent
2ee1c412
Changes
1
Hide whitespace changes
Inline
Side-by-side
ProcessList.c
View file @
28d4cad5
...
...
@@ -414,7 +414,7 @@ static bool ProcessList_readStatFile(Process *process, const char* dirname, cons
int
size
=
xread
(
fd
,
buf
,
MAX_READ
);
close
(
fd
);
if
(
!
size
)
return
false
;
if
(
size
<=
0
)
return
false
;
buf
[
size
]
=
'\0'
;
assert
(
process
->
pid
==
atoi
(
buf
));
...
...
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