aboutsummaryrefslogtreecommitdiffstats
path: root/asterisk.c
diff options
context:
space:
mode:
authormarkster <markster@f38db490-d61c-443f-a65b-d21fe96a405b>2004-05-07 14:08:50 +0000
committermarkster <markster@f38db490-d61c-443f-a65b-d21fe96a405b>2004-05-07 14:08:50 +0000
commitf8ac9a83c2e8bf9884a496a0fa462bd6081c270a (patch)
treed23f59313f719ff5226a466a25bd60af7ac07ac1 /asterisk.c
parentcf3caca69465019deb9ae8aa181f6bfb820f7d89 (diff)
Add debugging to failure
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@2914 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'asterisk.c')
-rwxr-xr-xasterisk.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/asterisk.c b/asterisk.c
index a1c1647f6..b4a643504 100755
--- a/asterisk.c
+++ b/asterisk.c
@@ -248,7 +248,8 @@ static void *netconsole(void *vconsole)
res = poll(fds, 2, -1);
if (res < 0) {
- ast_log(LOG_WARNING, "poll returned < 0: %s\n", strerror(errno));
+ if (errno != EINTR)
+ ast_log(LOG_WARNING, "poll returned < 0: %s\n", strerror(errno));
continue;
}
if (fds[0].revents) {
@@ -321,7 +322,7 @@ static void *listener(void *unused)
fcntl(consoles[x].p[1], F_SETFL, flags | O_NONBLOCK);
consoles[x].fd = s;
if (pthread_create(&consoles[x].t, &attr, netconsole, &consoles[x])) {
- ast_log(LOG_ERROR, "Unable to spawn thread to handle connection\n");
+ ast_log(LOG_ERROR, "Unable to spawn thread to handle connection: %s\n", strerror(errno));
consoles[x].fd = -1;
fdprint(s, "Server failed to spawn thread\n");
close(s);