[Buildbot-devel] Getting buildbot to kill all subprocesses

exarkun at twistedmatrix.com exarkun at twistedmatrix.com
Fri Mar 5 21:04:32 UTC 2010


On 08:52 pm, chris at atlee.ca wrote:
>buildbot should probably be doing something like setpgrp when it
>starts a process so that the entire process group can be killed
>properly.

Twisted's spawnProcess API makes something like this available (it 
actually does a setsid, but same idea).  Unfortunately it forces you to 
use a pty if you want this, which isn't so cool.  I'd love it if these 
two features were available independently of each other.  Too many other 
things on my plate these days, though.

Also, there's the obscure case where buildbot runs a process that runs 
processes that fiddle with their process group, and that would break 
this feature.  Not many things should be doing this, so it's probably 
not a big deal, but it's worth keeping in mind that it's not foolproof.

Jean-Paul




More information about the devel mailing list