提交 0cd4cf99 authored 作者: Anthony Minessale's avatar Anthony Minessale

compensate for strange socket bug in macos

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@10257 d0543943-73ff-0310-b7d9-9358b9ac24b2
上级 25b2a617
......@@ -77,6 +77,10 @@ initInterruptPipe(interruptPipe * pipeP,
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 @@ channelWait(TChannel * const channelP,
rc = poll(pollfds, ARRAY_SIZE(pollfds),
timeoutMs == TIME_INFINITE ? -1 : timeoutMs);
if (rc < 0) {
if (errno == EINTR) {
failed = FALSE;
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论