[Freeswitch-svn] [commit] r10257 - freeswitch/trunk/libs/xmlrpc-c/lib/abyss/src
Freeswitch SVN
anthm at freeswitch.org
Wed Nov 5 13:29:19 EST 2008
Author: anthm
Date: Wed Nov 5 13:29:18 2008
New Revision: 10257
Modified:
freeswitch/trunk/libs/xmlrpc-c/lib/abyss/src/socket_unix.c
Log:
compensate for strange socket bug in macos
Modified: freeswitch/trunk/libs/xmlrpc-c/lib/abyss/src/socket_unix.c
==============================================================================
--- freeswitch/trunk/libs/xmlrpc-c/lib/abyss/src/socket_unix.c (original)
+++ freeswitch/trunk/libs/xmlrpc-c/lib/abyss/src/socket_unix.c Wed Nov 5 13:29:18 2008
@@ -77,6 +77,10 @@
static void
termInterruptPipe(interruptPipe *pipeP) {
if (pipeP->inuse) {
+ int x = 0;
+ write(pipeP->interruptorFd, &x, sizeof(x));
+ usleep(500);
+ shutdown(pipeP->interrupteeFd, 2);
sane_close(pipeP->interruptorFd);
sane_close(pipeP->interrupteeFd);
}
@@ -310,6 +314,7 @@
rc = poll(pollfds, ARRAY_SIZE(pollfds),
timeoutMs == TIME_INFINITE ? -1 : timeoutMs);
+
if (rc < 0) {
if (errno == EINTR) {
failed = FALSE;
More information about the Freeswitch-svn
mailing list