mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-05 12:16:00 +00:00
Ignore interrupted system call error on "accept"
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2293 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -263,6 +263,7 @@ static void *listener(void *unused)
|
||||
len = sizeof(sun);
|
||||
s = accept(ast_socket, (struct sockaddr *)&sun, &len);
|
||||
if (s < 0) {
|
||||
if (errno != EINTR)
|
||||
ast_log(LOG_WARNING, "Accept retured %d: %s\n", s, strerror(errno));
|
||||
} else {
|
||||
for (x=0;x<AST_MAX_CONNECTS;x++) {
|
||||
|
Reference in New Issue
Block a user