Skip to content

Commit

Permalink
make poll wait, not return immediately
Browse files Browse the repository at this point in the history
  • Loading branch information
ka9q committed Apr 6, 2024
1 parent 8a16ea7 commit f4f03f6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion opusd.c
Expand Up @@ -290,7 +290,7 @@ int main(int argc,char * const argv[]){
fds[1].fd = Status_fd;
fds[1].events = POLLIN;
fds[1].revents = 0;
int n = poll(fds,2,0); // Wait indefinitely for either stat or pcm data
int n = poll(fds,2,-1); // Wait indefinitely for either stat or pcm data
if(n < 0)
break; // Error of some kind
if(n == 0)
Expand Down

0 comments on commit f4f03f6

Please sign in to comment.