Skip to content
Snippets Groups Projects
Commit 4cd13f4e authored by Mark Spencer's avatar Mark Spencer
Browse files

Ignore interrupted system call error on "accept"

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2293 65c4cc65-6c06-0410-ace0-fbb531ad65f3
parent 5fafcdd7
No related branches found
No related tags found
No related merge requests found
...@@ -263,7 +263,8 @@ static void *listener(void *unused) ...@@ -263,7 +263,8 @@ static void *listener(void *unused)
len = sizeof(sun); len = sizeof(sun);
s = accept(ast_socket, (struct sockaddr *)&sun, &len); s = accept(ast_socket, (struct sockaddr *)&sun, &len);
if (s < 0) { if (s < 0) {
ast_log(LOG_WARNING, "Accept retured %d: %s\n", s, strerror(errno)); if (errno != EINTR)
ast_log(LOG_WARNING, "Accept retured %d: %s\n", s, strerror(errno));
} else { } else {
for (x=0;x<AST_MAX_CONNECTS;x++) { for (x=0;x<AST_MAX_CONNECTS;x++) {
if (consoles[x].fd < 0) { if (consoles[x].fd < 0) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment