diff --git a/ws-wrapper/src/main.c b/ws-wrapper/src/main.c index 690a6ddde..744bf5a15 100644 --- a/ws-wrapper/src/main.c +++ b/ws-wrapper/src/main.c @@ -66,6 +66,7 @@ void *loop_tx(void *p) { nb = read(pipe_tx[PIPE_READ], buf, PIPE_BUF_SIZE - 1); if (nb > 0) { buf[nb] = '\0'; + printf("%s", buf); nn_send(sock_ws, buf, nb, 0); } } @@ -176,5 +177,6 @@ int main(int argc, char **argv) { printf("usage: ws-wrapper WS_SOCKET BINARY "); } + setvbuf(stdout, NULL, _IONBF, 0); launch_exe(argc, argv); }