<br><br><div class="gmail_quote">On Tue, Nov 27, 2012 at 8:59 AM, 黄 轶明 <span dir="ltr">&lt;<a href="mailto:hoooooosety@gmail.com" target="_blank">hoooooosety@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div style="word-wrap:break-word"><br>class Factory(ServerFactory):<br>...<br><br><span style="white-space:pre-wrap">        </span>def StopFactory(self):<br><span style="white-space:pre-wrap">        </span><span style="white-space:pre-wrap">        </span># which is the p above<br>
<span style="white-space:pre-wrap">        </span><span style="white-space:pre-wrap">        </span>p.transport.signalProcess(&quot;KILL&quot;)<br><br>I thought the subprocess will be killed which is not.<br><br><br>What&#39;s wrong with my code? Thanks!<br clear="all">
</div></blockquote><div><br>Perhaps StopFactory is not being called? Are you calling it? If not, and you expected the reactor to call it when you stopped listening, it should be stopFactory, rather than StopFactory.<br></div>
</div><br>-- <br>Itamar Turner-Trauring, Future Foundries LLC<br><a href="http://futurefoundries.com/" target="_blank">http://futurefoundries.com/</a> — Twisted consulting, training and support.<br><br>