<html><head></head><body class="ApplePlainTextBody" dir="auto" style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;"><br><blockquote type="cite">On Dec 1, 2015, at 11:35 PM, Nico &lt;guillotnicolas@hotmail.com&gt; wrote:<br><br>Hello.<br>I hope there is still somebody at the other side on the mailing list...<br><br>First, congratulations for your dcerpc product, it's an impressive work.<br><br>My question: I do a rpc_server_listen in a thread (I am on linux, so pthread, but created with dcethread_create).<br>And I want to exit this function without killing my whole process, and I don't manage to do that.<br><br>I tried several things:<br><span class="Apple-tab-span" style="white-space:pre">        </span>• dcethread_enableinterrupt in the listening thread <br>and dcethread_interrupt in the main thread.<br><span class="Apple-tab-span" style="white-space:pre">        </span>• dcethread_signal_to_interrupt for dcethread_self() in the listening thread, with DCETHREAD_TRY / CATCH<br>and dcethread_kill in the main thread.<br><br>None works..<br></blockquote><br>Hi Nicolas,<br><br>I checked the Microsoft API and the inverse of RpcServerListen() would be RpcMgmtStopServerListening(). The DCE equivalent of this is rpc_mgmt_stop_server_listening().<br><br><span class="Apple-tab-span" style="white-space:pre">        </span>http://pubs.opengroup.org/onlinepubs/9629399/rpc_server_listen.htm<br><br>FWIW I've never tried to use this particular call, but I assume that it works :)<br><br>cheers,<br>James<br><br></body></html>