kiwmic: Read reply from kiwmi
This commit is contained in:
parent
9ed779417f
commit
0191435bd4
1 changed files with 7 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue