Sisyphus repository
Last update: 1 october 2023 | SRPMs: 18631 | Visits: 37907221
en ru br
ALT Linux repos
S:2.15.0-alt1.2
5.0: 2.13.2-alt9
4.1: 2.13.2-alt8
4.0: 2.13.2-alt6
3.0: 2.13.1-alt1.1

Group :: Sound
RPM: TiMidity++

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

Patch: TiMidity-nopoll.diff
Download


--- interface/alsaseq_c.c~	2004-07-10 08:07:00.000000000 +0300
+++ interface/alsaseq_c.c	2007-05-12 17:11:49.000000000 +0300
@@ -529,13 +529,18 @@
 		}
 		if (! ctxp->active || ! IS_STREAM_TRACE) {
 			fd_set rfds;
-			struct timeval timeout;
 			FD_ZERO(&rfds);
 			FD_SET(ctxp->fd, &rfds);
-			timeout.tv_sec = 0;
-			timeout.tv_usec = 10000; /* 10ms */
-			if (select(ctxp->fd + 1, &rfds, NULL, NULL, &timeout) < 0)
-				goto __done;
+			if (! IS_STREAM_TRACE) {
+				struct timeval timeout;
+				timeout.tv_sec = 0;
+				timeout.tv_usec = 10000; /* 10ms */
+				if (select(ctxp->fd + 1, &rfds, NULL, NULL, &timeout) < 0)
+					goto __done;
+			} else {
+				if (select(ctxp->fd + 1, &rfds, NULL, NULL, NULL) < 0)
+					goto __done;
+			}				
 		}
 	}
 
 
design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin