<html><head><meta http-equiv="Content-Type" content="text/html charset=GB2312"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">hi, all<br><br>I start a process using spawnProcess and want to kill when my certain Factory stops.<br><br>something I wrote like these<br><br><br>----------<br><br>p = SomeProtocol(ProcessProtocol)<br><br>reactor.spawnProcess(p, 'twistd', ['twistd', '-y', 'anotherMain.py'], {})<br><br>----------<br><br>class Factory(ServerFactory):<br>...<br><br><span class="Apple-tab-span" style="white-space: pre; ">        </span>def StopFactory(self):<br><span class="Apple-tab-span" style="white-space: pre; ">        </span><span class="Apple-tab-span" style="white-space: pre; ">        </span># which is the p above<br><span class="Apple-tab-span" style="white-space: pre; ">        </span><span class="Apple-tab-span" style="white-space: pre; ">        </span>p.transport.signalProcess("KILL")<br><br>I thought the subprocess will be killed which is not.<br><br><br>What's wrong with my code? Thanks!<br><br><br>Regards, Huang<br><br><div apple-content-edited="true">
<span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: 'Heiti SC'; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; "><div>»Æ éóÃ÷</div><div>mail: <a href="mailto:hoooooosety@gmail.com">hoooooosety@gmail.com</a></div><div>phone: 18620129285</div></span>
</div>
<br></body></html>