diff --git a/kiwmic/main.c b/kiwmic/main.c index c41c861..a6fd661 100644 --- a/kiwmic/main.c +++ b/kiwmic/main.c @@ -57,7 +57,13 @@ main(int argc, char **argv) fprintf(socket_file, "%c", '\0'); fflush(socket_file); - // TODO: read result + int c; + while ((c = getc(socket_file)) != '\0') { + putchar(c); + if (c == '\n') { + fflush(stdout); + } + } fclose(socket_file); }