Permalink
Browse files

flush stdout more aggressively

  • Loading branch information...
1 parent e9cbd79 commit 9e0a6e230d1040526c8be11085ffd329d2bb7d0e Marshall Yount committed Aug 14, 2012
Showing with 4 additions and 1 deletion.
  1. +4 −1 src/kinectable_pipe.cpp
View
5 src/kinectable_pipe.cpp
@@ -449,16 +449,18 @@ void main_loop() {
writeDepth();
}
printf("{\"status\":\"images saved\", \"elapsed\":%0.3f}\n", clockAsFloat(last));
- fflush(stdout);
}
writeSkeleton();
}
+ fflush(stdout);
}
int main(int argc, char **argv) {
last = std::clock();
printf("{\"status\":\"initializing\", \"elapsed\":%0.3f}\n", clockAsFloat(last));
+ fflush(stdout);
+
unsigned int arg = 1,
require_argument = 0,
port_argument = 0;
@@ -530,6 +532,7 @@ int main(int argc, char **argv) {
signal(SIGINT, terminate);
printf("{\"status\":\"seeking_users\", \"elapsed\":%.3f}\n", clockAsFloat(last));
+ fflush(stdout);
context.StartGeneratingAll();
while(true)

0 comments on commit 9e0a6e2

Please sign in to comment.