Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Ensure that stdin is in the fd set for select_wait().
  • Loading branch information
vext01 committed Sep 1, 2018
1 parent 90f0752 commit 15f7273
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/cdda-player.c
Expand Up @@ -269,6 +269,7 @@ select_wait(int sec)
fd_set se;

FD_ZERO(&se);
FD_SET(STDIN_FILENO, &se);
tv.tv_sec = sec;
tv.tv_usec = 0;
return select(1,&se,NULL,NULL,&tv);
Expand Down

0 comments on commit 15f7273

Please sign in to comment.