[Twisted-Python] spawnProcess and when to kill
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
> 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...
More information about the Twisted-Python