[Twisted-Python] Process without fork() exec()

Dustin J. Mitchell dustin at v.igoro.us
Wed Feb 5 09:13:18 MST 2014


What's your ultimate goal here?  It doesn't sound like Process is a
good tool to use on a system that doesn't support processes.

Dustin

On Wed, Feb 5, 2014 at 10:59 AM, Toph Bei Fong <toph_ut at yahoo.de> wrote:
> Hello,
> im trying to make Twisted run on an embedded system which doesnt support
> fork() and exec().
> Lets say i have a function os.writeLine(), which just makes a prinft("foo")
> on the stdout.
> I implemented writeLine() in the posixmodule.c of the python so
> os.writeLine() would make the work.
>
>
> Now i would like to create a Process (from buildbot ShellCommand) which just
> calls writeLine() and gets the stdout of it (foo).
> No fork, no exec ..
> std are standards: 0,1 and 2.
> since i tried to understand the class Process(_BaseProcess) in
> (twisted/internet/process) and i couldnt resolve my problem alone, i would
> like to get some help so could someone please point me to the right
> direction ..
>
> best regards ..
>
> _______________________________________________
> Twisted-Python mailing list
> Twisted-Python at twistedmatrix.com
> http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python
>



More information about the Twisted-Python mailing list