mirror of
https://github.com/linux-speakup/espeakup.git
synced 2026-08-20 23:04:18 +02:00
Fixed the select call
The select call was moved to be in the if statement below it since the return code is not needed after that statement is processed.
This commit is contained in:
parent
24607b1cc8
commit
faab189389
1 changed files with 1 additions and 2 deletions
|
|
@ -147,8 +147,7 @@ void main_loop(struct synth_t *s)
|
|||
FD_SET(softFD, &set);
|
||||
tv.tv_sec = 0;
|
||||
tv.tv_usec = 500;
|
||||
i = select(softFD + 1, &set, NULL, NULL, &tv);
|
||||
if (i < 0) {
|
||||
if (select(softFD + 1, &set, NULL, NULL, &tv) < 0) {
|
||||
if (errno == EINTR)
|
||||
continue;
|
||||
perror("Select failed");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue