'See L{IReactorProcess.spawnProcess}.
@param errFlag: Determines if stderr should be logged.
@type errFlag: L{endpoints.StandardErrorBehavior}'

def __init__(self, reactor, executable, args=(), env={}, path=None, uid=None, gid=None, usePTY=0, childFDs=None, errFlag=StandardErrorBehavior.LOG):

    self._reactor = reactor
    self._executable = executable
    self._args = args
    self._env = env
    self._path = path
    self._uid = uid
    self._gid = gid
    self._usePTY = usePTY
    self._childFDs = childFDs
    self._errFlag = errFlag
    self._spawnProcess = self._reactor.spawnProcess
