[Asterisk-cvs] asterisk/channels chan_zap.c,1.223,1.224
markster at lists.digium.com
markster at lists.digium.com
Thu May 13 14:12:45 CDT 2004
Update of /usr/cvsroot/asterisk/channels
In directory mongoose.digium.com:/tmp/cvs-serv5319/channels
Modified Files:
chan_zap.c
Log Message:
Make sure we initialize attributes properly on thread (bug #1563)
Index: chan_zap.c
===================================================================
RCS file: /usr/cvsroot/asterisk/channels/chan_zap.c,v
retrieving revision 1.223
retrieving revision 1.224
diff -u -d -r1.223 -r1.224
--- chan_zap.c 12 May 2004 23:35:50 -0000 1.223
+++ chan_zap.c 13 May 2004 18:23:34 -0000 1.224
@@ -6178,6 +6178,10 @@
int i;
pthread_t threadid;
pthread_attr_t attr;
+
+ pthread_attr_init(&attr);
+ pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
+
gettimeofday(&lastidle, NULL);
if (!ast_strlen_zero(pri->idledial) && !ast_strlen_zero(pri->idleext)) {
/* Need to do idle dialing, check to be sure though */
More information about the svn-commits
mailing list