Code Review
/
staging
/
windowmanager.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
review
|
tree
raw
|
patch
| inline |
side by side
(parent:
8c71220
)
main: read only once from stdin for status log
author
Marcus Fritzsch
<marcus_fritzsch@mentor.com>
Fri, 30 Jun 2017 13:58:45 +0000
(15:58 +0200)
committer
Marcus Fritzsch
<marcus_fritzsch@mentor.com>
Tue, 8 Aug 2017 15:24:00 +0000
(17:24 +0200)
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
src/main.cpp
patch
|
blob
|
history
diff --git
a/src/main.cpp
b/src/main.cpp
index
8dde449
..
fbd4e46
100644
(file)
--- a/
src/main.cpp
+++ b/
src/main.cpp
@@
-173,9
+173,7
@@
int main(int /*argc*/, char ** /*argv*/) {
p.add_fd(STDIN_FILENO, [&c](int fd) {
int buf;
ssize_t ret;
- while ((ret = read(fd, &buf, sizeof(buf))) == sizeof(buf)) {
- ;
- }
+ ret = read(fd, &buf, sizeof(buf));
c.c->debug_dump_current_status();
return ret == 0 ? -1 : 0;
});