Hi,<div><br></div><div>I have written a multi threaded application.</div><div>I have 8 network threads and one dns thread.</div><div>DNS thread is using epoll_wait to wait for event.</div><div><br></div><div>Now, I am doing dns_init() in the main function and adding the fd to the epoll in the network thread.</div>
<div>So, the sequence is, first dns_init() is done and after that worker thread starts and the fd gets registered with epoll of worker thread.</div><div>After this, epoll_timeouts() is called and the worker threads starts the wait for using epoll_wait().</div>
<div>After this network threads start and they wait to get the domain name to resolve.</div><div>When the domain name is given, I am calling dns_submit_p() call the get the A records.</div><div>But, when I submit the query, the epoll of worker thread is not getting woken up.</div>
<div><br></div><div>Now, if instead of adding the fd in the worker thread, if I add it in the network thread itself, then the worker thread gets the event.</div><div><br></div><div>I looked into the code of udns. But, I could not identify the problem.</div>
<div><br></div><div>Can you please help me resolve this issue?.</div><div><br clear="all">Warm Regards,<br>Narendra<br><br>Visit my blogs at:<br><a href="http://ssnarendrakumar.blogspot.com/">http://ssnarendrakumar.blogspot.com/</a><br>
   ___    ___    __    _<br>  /  __/  /  __/  /     | / /<br>_\   \   _ \   \   /   /| |/ /<br>\___/ \___/   /_/ |__/<br>
</div>