[Twisted-Python] spawnProcess and when to kill
Itamar Turner-Trauring
itamar at futurefoundries.com
Wed Nov 28 00:04:29 MST 2012
On Tue, Nov 27, 2012 at 8:59 AM, 黄 轶明 <hoooooosety at gmail.com> wrote:
>
> class Factory(ServerFactory):
> ...
>
> def StopFactory(self):
> # which is the p above
> p.transport.signalProcess("KILL")
>
> I thought the subprocess will be killed which is not.
>
>
> What's wrong with my code? Thanks!
>
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.
--
Itamar Turner-Trauring, Future Foundries LLC
http://futurefoundries.com/ — Twisted consulting, training and support.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: </pipermail/twisted-python/attachments/20121128/c5987b31/attachment.html>
More information about the Twisted-Python
mailing list