提交 938ec999 authored 作者: Mike Jerris's avatar Mike Jerris

Merge pull request #1485 in FS/freeswitch from…

Merge pull request #1485 in FS/freeswitch from ~DIASBRUNO/freeswitch:bugfix/FS-10777-freeswitch-failing-to-link-to-process to master

* commit 'ab97ad0b':
  FS-10777 [mod_erlang_event] #resolve
...@@ -64,6 +64,7 @@ void ei_link(listener_t *listener, erlang_pid * from, erlang_pid * to) ...@@ -64,6 +64,7 @@ void ei_link(listener_t *listener, erlang_pid * from, erlang_pid * to)
char msgbuf[2048]; char msgbuf[2048];
char *s; char *s;
int index = 0; int index = 0;
int status = SWITCH_STATUS_SUCCESS;
switch_socket_t *sock = NULL; switch_socket_t *sock = NULL;
switch_os_sock_put(&sock, &listener->sockdes, listener->pool); switch_os_sock_put(&sock, &listener->sockdes, listener->pool);
...@@ -81,7 +82,8 @@ void ei_link(listener_t *listener, erlang_pid * from, erlang_pid * to) ...@@ -81,7 +82,8 @@ void ei_link(listener_t *listener, erlang_pid * from, erlang_pid * to)
/* sum: 542 */ /* sum: 542 */
switch_mutex_lock(listener->sock_mutex); switch_mutex_lock(listener->sock_mutex);
if (switch_socket_send(sock, msgbuf, (switch_size_t *) &index)) { status = switch_socket_send(sock, msgbuf, (switch_size_t *) &index);
if (status != SWITCH_STATUS_SUCCESS) {
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_WARNING, "Failed to link to process on %s\n", listener->peer_nodename); switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_WARNING, "Failed to link to process on %s\n", listener->peer_nodename);
} }
switch_mutex_unlock(listener->sock_mutex); switch_mutex_unlock(listener->sock_mutex);
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论