[Buildbot-devel] Running Pythonscript

Johann Thurmayr Johann.Thurmayr at gmx.net
Sat Aug 30 19:28:50 UTC 2008


finally, Python 2.5 and subprocess.Popen() works fine.
thanks for your help
-Hans-

Am Donnerstag, den 28.08.2008, 11:04 -0700 schrieb Brian Warner:
> > I run them in a script called by a ShellCommand. I replaced all the
> > os.system() calls by subprocess.Popen("mycmd",shell=True,stdout=PIPE)
> > this works. But i still wonder why os.system() and os.Popen are
> > ignored.
> 
> os.system() and subprocess.Popen frequently do not work in a Twisted-based
> program that has claimed the SIGCHLD handler, since there can only be one
> SIGCHLD handler at a time. The usual symptom is that the child process
> appears to never finish, but I've seen weirder behavior too.
> 
> Take a look at reactor.spawnProcess[1], and look at the code in buildbot[2]
> that uses it, that's the way to spawn a child process in a reactor-based
> program.
> 
> hope that helps,
>  -Brian
> 
> 
> [1]: http://twistedmatrix.com/documents/current/api/twisted.internet.interfaces.IReactorProcess.html
> [2]: http://buildbot.net/trac/browser/buildbot/slave/commands.py#L412
> 
> -------------------------------------------------------------------------
> This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
> Build the coolest Linux based applications with Moblin SDK & win great prizes
> Grand prize is a trip for two to an Open Source event anywhere in the world
> http://moblin-contest.org/redirect.php?banner_id=100&url=/
> _______________________________________________
> Buildbot-devel mailing list
> Buildbot-devel at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/buildbot-devel
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 197 bytes
Desc: Dies ist ein digital signierter Nachrichtenteil
URL: <http://buildbot.net/pipermail/devel/attachments/20080830/7381c0c9/attachment.bin>


More information about the devel mailing list