On Tue, Nov 27, 2012 at 8:59 AM, 黄 轶明 <hoooooos...@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.
_______________________________________________
Twisted-Python mailing list
Twisted-Python@twistedmatrix.com
http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python

Reply via email to