Skip to content

Commit

Permalink
Set writefds too (issue #563).
Browse files Browse the repository at this point in the history
  • Loading branch information
joewing committed May 13, 2022
1 parent 8a431fb commit 9e571f1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/command.c
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ char *ReadFromProcess(const char *command, unsigned timeout_ms)
tv.tv_usec = (diff_ms % 1000) * 1000;

/* Wait for data (or a timeout). */
rc = select(fds[0] + 1, &fs, NULL, &fs, &tv);
rc = select(fds[0] + 1, &fs, &fs, &fs, &tv);
if(rc == 0) {
close(fds[0]);
/* Timeout */
Expand Down

0 comments on commit 9e571f1

Please sign in to comment.