[Asterisk-cvs] asterisk asterisk.c,1.81,1.82
markster at lists.digium.com
markster at lists.digium.com
Fri May 7 09:59:47 CDT 2004
Update of /usr/cvsroot/asterisk
In directory mongoose.digium.com:/tmp/cvs-serv16124
Modified Files:
asterisk.c
Log Message:
Add debugging to failure
Index: asterisk.c
===================================================================
RCS file: /usr/cvsroot/asterisk/asterisk.c,v
retrieving revision 1.81
retrieving revision 1.82
diff -u -d -r1.81 -r1.82
--- asterisk.c 4 May 2004 14:54:42 -0000 1.81
+++ asterisk.c 7 May 2004 14:08:50 -0000 1.82
@@ -248,7 +248,8 @@
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 @@
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);
More information about the svn-commits
mailing list