Skip to content

Commit

Permalink
fix: make zencode-exec cli wait undefinitely for stdin
Browse files Browse the repository at this point in the history
  • Loading branch information
jaromil committed Jul 10, 2023
1 parent 6d24be7 commit 2ad5d14
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/zencode-exec.c
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ int main(int argc, char **argv) {
#if !defined(ARCH_WIN)
fds.fd = 0; // stdin
fds.events = POLLIN;
ret = poll(&fds, 1, 0);
ret = poll(&fds, 1, -1); // by default wait until input
if(ret == 0) {
fprintf(stderr,"usage: stream | zencode-exec\n");
exit(1);
Expand Down

0 comments on commit 2ad5d14

Please sign in to comment.