https://origsvn.digium.com/svn/asterisk/branches/1.2
........
r63828 | qwell | 2007-05-10 18:14:55 -0500 (Thu, 10 May 2007) | 4 lines
Fix an issue with trying to kill a thread before it gets created.
Issue 9709, patch by nic_bellamy.
........
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@63830
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
iaxq.count++;
AST_LIST_UNLOCK(&iaxq.queue);
/* Wake up the network and scheduler thread */
- pthread_kill(netthreadid, SIGURG);
+ if (netthreadid != AST_PTHREADT_NULL)
+ pthread_kill(netthreadid, SIGURG);
signal_condition(&sched_lock, &sched_cond);
return 0;
}