Skip to content

Commit

Permalink
ws-wrapper prints (#1267)
Browse files Browse the repository at this point in the history
* ws-wrapper prints

* ensure ws-wrapper output goes to journal

* revert accidental softcut commit change

Co-authored-by: emb <emb@null>
  • Loading branch information
catfact and emb authored Jan 3, 2021
1 parent 4820a58 commit d0dd1d1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions ws-wrapper/src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}
Expand Down Expand Up @@ -176,5 +177,6 @@ int main(int argc, char **argv) {
printf("usage: ws-wrapper WS_SOCKET BINARY <child args...>");
}

setvbuf(stdout, NULL, _IONBF, 0);
launch_exe(argc, argv);
}

0 comments on commit d0dd1d1

Please sign in to comment.