'The exec() which is done in the forked child.'

def _execChild(self, path, uid, gid, executable, args, environment):

    if path:
        os.chdir(path)
    if ((uid is not None) or (gid is not None)):
        if (uid is None):
            uid = os.geteuid()
        if (gid is None):
            gid = os.getegid()
        os.setuid(0)
        os.setgid(0)
        switchUID(uid, gid)
    os.execvpe(executable, args, environment)
