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:
William Hubbs 2008-10-05 16:12:37 -05:00
commit faab189389

View file

@ -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");