[Twisted-Python] spawnProcess and when to kill

Itamar Turner-Trauring itamar at futurefoundries.com
Wed Nov 28 02:04:29 EST 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: http://twistedmatrix.com/pipermail/twisted-python/attachments/20121128/c5987b31/attachment.htm 

More information about the Twisted-Python mailing list