From 0fdca827b851fd0beb9f476c52ec5568ed36174e Mon Sep 17 00:00:00 2001 From: William Hubbs Date: Wed, 24 Jun 2009 21:29:46 -0500 Subject: [PATCH] check for terminalFD after select() If terminalFD has something to read, we break out of the loop in the softsynth thread. --- softsynth.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/softsynth.c b/softsynth.c index 9e700c5..3eb6c7e 100644 --- a/softsynth.c +++ b/softsynth.c @@ -156,6 +156,9 @@ void *softsynth_thread(void *arg) break; } + if (FD_ISSET(terminalFD, &set)) + break; + if (!FD_ISSET(softFD, &set)) continue;