'If you override this method in a subclass, the last statement
in the function should be to call this method with
super(MyWorkerClass, self).init_process() so that the ``run()``
loop is initiated.'

def init_process(self):

    if self.cfg.env:
        for (k, v) in self.cfg.env.items():
            os.environ[k] = v
    util.set_owner_process(self.cfg.uid, self.cfg.gid, initgroups=self.cfg.initgroups)
    util.seed()
    self.PIPE = os.pipe()
    for p in self.PIPE:
        util.set_non_blocking(p)
        util.close_on_exec(p)
    for s in self.sockets:
        util.close_on_exec(s)
    util.close_on_exec(self.tmp.fileno())
    self.wait_fds = (self.sockets + [self.PIPE[0]])
    self.log.close_on_exec()
    self.init_signals()
    if self.cfg.reload:
        def changed(fname):
            self.log.info('Worker    reloading:    %s    modified', fname)
            self.alive = False
            self.cfg.worker_int(self)
            time.sleep(0.1)
            sys.exit(0)
        reloader_cls = reloader_engines[self.cfg.reload_engine]
        self.reloader = reloader_cls(extra_files=self.cfg.reload_extra_files, callback=changed)
        self.reloader.start()
    self.load_wsgi()
    self.cfg.post_worker_init(self)
    self.booted = True
    self.run()
