fix loop
--- freeswitch/trunk/libs/openzap/src/zap_threadmutex.c 2010-04-08 03:23:06 UTC (rev 17243)
+++ freeswitch/trunk/libs/openzap/src/zap_threadmutex.c 2010-04-08 14:59:41 UTC (rev 17244)
@@ -425,7 +425,7 @@
return ZAP_TIMEOUT;
}
- for (i = size; i < zap_array_len(ints); i++) {
+ for (i = 0; i < size; i++) {
if (ints[i].revents & POLLIN) {
res = read(ints[0].fd, pipebuf, sizeof(pipebuf));
if (res == -1) {