[Twisted-Python] Launching Twisted client using Process call

naman jain namanvit at gmail.com
Tue Nov 24 05:59:03 EST 2009


Please could I get some help on this issue, if any one has some ideas.

Thanks
Naman

On Tue, Nov 17, 2009 at 3:30 PM, David Ripton <dripton at ripton.net> wrote:

> On 2009.11.17 07:07:50 +0100, naman jain wrote:
> > I try to launch it as a Process:
> >   foo = Process( target=twisted_client.main, args=(q,uid,))
> >   foo.start()
> >   foo.join()
> >   status = q.get()
>
> > Launching the client in this manner, is not showing reliable results.
>
> You didn't give a long enough example to be certain, but that looks like
> multiprocessing.Process syntax.  The multiprocessing module does not
> work reliably with Twisted.  Neither does the subprocess module.
>
> You should use the equivalent Twisted process functionality, shown at
> http://twistedmatrix.com/projects/core/documentation/howto/process.html
>
> There's also https://launchpad.net/ampoule, but for the small example
> you show, the basic Twisted process stuff should be fine.
>
> --
> David Ripton    dripton at ripton.net
>
> _______________________________________________
> Twisted-Python mailing list
> Twisted-Python at twistedmatrix.com
> http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://twistedmatrix.com/pipermail/twisted-python/attachments/20091124/4b2030ed/attachment.htm 


More information about the Twisted-Python mailing list