summaryrefslogtreecommitdiff
path: root/asterisk.c
diff options
context:
space:
mode:
authorMark Spencer <markster@digium.com>2004-03-04 21:32:32 +0000
committerMark Spencer <markster@digium.com>2004-03-04 21:32:32 +0000
commitfa7454688b23b63dfa25f072fa0618fdb37287ab (patch)
tree4ec649ee33604cf0870c83aa306cddbec595678c /asterisk.c
parent657056b11445ada5230c6c59dea2baf9e5180922 (diff)
Eliminate spurious select warning
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2331 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'asterisk.c')
-rwxr-xr-xasterisk.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/asterisk.c b/asterisk.c
index ac2b503c4..a267df996 100755
--- a/asterisk.c
+++ b/asterisk.c
@@ -257,7 +257,8 @@ static void *listener(void *unused)
FD_SET(ast_socket, &fds);
s = ast_select(ast_socket + 1, &fds, NULL, NULL, NULL);
if (s < 0) {
- ast_log(LOG_WARNING, "Select returned error: %s\n", strerror(errno));
+ if (errno != EINTR)
+ ast_log(LOG_WARNING, "Select returned error: %s\n", strerror(errno));
continue;
}
len = sizeof(sun);